The Country Data Set - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


The Country Data Set

 

Built-in Data Sets

The Country Data set

Built-in Data Sets

• 

The DataSets package features two built-in data sets: Country and GeoNames.

• 

The built-in data sets are accessed by creating a Reference to either data set.

The Country Data set

• 

The Country data set contains information on all of the countries of the world.

• 

The data in the Country data set is taken from various data sources. Most of the data is hosted by the online data aggregator Quandl and dynamically updated when it is accessed in Maple.

• 

Most of the data in the Country data set is stored as TimeSeries objects.

 

The following creates a new reference to the Country data set:

with(DataSets):

ref := Reference("Builtin", "Country");

refCountry (Name)CO2 EmissionsCPI Change(124 more)AfghanistanTimeSeries 9809.225TimeSeries 4.9759515055383AlbaniaTimeSeries 5716.853TimeSeries 1.41109078954244AlgeriaTimeSeries 145400.217TimeSeries 1.95176821052894(182 more)

(1)

 

The first column in the Country data set is always the Name column. The GetElementNames command returns a list containing the names for all of the countries. The following table shows all of the available countries:

DocumentTools:-Tabulate(Matrix(31, 6, [op(sort(GetElementNames(ref))),""])):

Afghanistan

Albania

Algeria

Angola

Antigua and Barbuda

Argentina

Armenia

Australia

Austria

Azerbaijan

Bahrain

Bangladesh

Barbados

Belarus

Belgium

Belize

Benin

Bhutan

Bolivia

Bosnia and Herzegovina

Botswana

Brazil

Brunei

Bulgaria

Burkina Faso

Burundi

Cabo Verde

Cambodia

Cameroon

Canada

Central African Republic

Chad

Chile

China

Colombia

Comoros

Congo

Congo-Brazzaville

Costa Rica

Croatia

Cuba

Cyprus

Czech Republic

Denmark

Djibouti

Dominica

Dominican Republic

Ecuador

Egypt

El Salvador

Equatorial Guinea

Eritrea

Estonia

Ethiopia

Fiji

Finland

France

Gabon

Gambia

Georgia

Germany

Ghana

Greece

Grenada

Guatemala

Guinea

Guinea-Bissau

Guyana

Haiti

Honduras

Hong Kong

Hungary

Iceland

India

Indonesia

Iran

Iraq

Ireland

Israel

Italy

Ivory Coast

Jamaica

Japan

Jordan

Kazakhstan

Kenya

Kiribati

Kosovo

Kuwait

Kyrgyzstan

Laos

Latvia

Lebanon

Lesotho

Liberia

Libya

Lithuania

Luxembourg

Macedonia

Madagascar

Malawi

Malaysia

Maldives

Mali

Malta

Mauritania

Mauritius

Mexico

Moldova

Mongolia

Montenegro

Morocco

Mozambique

Myanmar

Namibia

Nepal

Netherlands

New Zealand

Nicaragua

Niger

Nigeria

Norway

Oman

Pakistan

Panama

Papua New Guinea

Paraguay

Peru

Philippines

Poland

Portugal

Qatar

Romania

Russia

Rwanda

Saint Lucia

Samoa

Sao Tome and Principe

Saudi Arabia

Senegal

Serbia

Seychelles

Sierra Leone

Singapore

Slovakia

Slovenia

Solomon Islands

Somalia

South Africa

South Korea

South Sudan

Spain

Sri Lanka

Sudan

Suriname

Swaziland

Sweden

Switzerland

Syria

Taiwan

Tajikistan

Tanzania

Thailand

The Bahamas

Timor-Leste

Togo

Tonga

Trinidad and Tobago

Tunisia

Turkey

Turkmenistan

Tuvalu

UAE

UK

USA

Uganda

Ukraine

Uruguay

Uzbekistan

Vanuatu

Venezuela

Vietnam

Yemen

Zambia

Zimbabwe

 

 

The Country data set contains a collection of information for these countries. The GetHeaders command returns a list containing the names for all of the data set variables in the Country data set. The following table shows all of the available data variables:

DocumentTools:-Tabulate(Matrix(21, 6, sort(GetHeaders(ref)))):

2 Letter Country Code

3 Letter Country Code

Access to Improved Sanitation Facilities

Access to Improved Water Sources

Adult Literacy Rate

Adults Living with HIV

Agriculture Share of Employment

Agriculture Share of GDP

Airports

Armed Forces Personnel

Birth rate / 1000 pop / year

Budget surplus (+) or deficit (-) (% GDP)

CO2 Emissions

CPI Change

Carbon dioxide emissions from consumption of energy

Cell Phone Subscribers

Child Mortality

Children under the age of 5 years underweight (%)

Coastline

Commercial Tax Rate

Contraceptive prevalence rate (%)

Country Code for Internet Top-Level Domain

Crude oil - exports

Crude oil - imports

Crude oil - production

Crude oil - proved reserves

Currency Code

Death rate / 1000 pop / year

Deaths From Disease and Nutrition

Deaths From Injury and Accident

Deaths From Non-Communicable Diseases

Education expenditures (% GDP)

Electricity - consumption

Electricity - exports

Electricity - from fossil fuels (%)

Electricity - from hydroelectric plants (%)

Electricity - from nuclear fuels (%)

Electricity - from other renewable sources (%)

Electricity - imports

Electricity - installed generating capacity

Electricity - production

Exports Share of GDP

Female Population

Female-Male Literacy Ratio

Fertility Rate

GDP - LCU

GDP - USD

GDP Deflator

Gini Index

Government Revenues

Government Spending

Gross Inland Availability

Gross Production

Gross national saving (% GDP)

HIV/AIDS - adult prevalence rate

HIV/AIDS - deaths / year

Health Expenditure Per Capita

Health expenditures (% GDP)

Heliports

Hospital bed density / 1000 pop

Household Electrification Rate

Human Development Index

Imports Share of GDP

Industrial production growth rate (%)

Industry Share of Employment

Industry Share of GDP

Inflation rate (consumer prices) (% / year)

International Tourism Arrivals

Internet Users

Internet hosts

Irrigated land

Labor force

Land boundaries

Life Expectancy at Birth

Low Birth-Weight Babies

Methane Emissions

Military Expenditures

Military expenditures (% GDP)

Natural gas - consumption

Natural gas - exports

Natural gas - imports

Natural gas - production

Natural gas - proved reserves

Net Debt

Net migration rate / 1000 pop / year

Nominal USD Exchange Rate

Nurses per 1000 People

Obesity - adult prevalence rate (%)

Passenger Vehicles

Physicians density / 1000 pop

Population

Population Above Age 64

Population Affected by Droughts or Floods

Population Aged 15 to 64

Population Below Age 15

Population Density

Population Growth Rate

Population Living with Less than Five Dollars a Day

Population growth rate (% / year)

Primary Enrolment Rate

Public debt (% GDP)

Real GDP - LCU

Real GDP Change

Refined petroleum products - consumption

Refined petroleum products - exports

Refined petroleum products - imports

Refined petroleum products - production

Rural Population

Secondary Enrolment Rate

Services Share of Employment

Services Share of GDP

Stock Market Capitalization

Stock Market Index

Surplus or Deficit

Taxes and other revenues (% GDP)

Telephones - main lines in use

Telephones - mobile cellular

Tertiary Enrolment Rate

Total fertility rate (children / woman)

Total renewable water resources

Under-Nourished People

Unemployment Rate

Unemployment rate (%)

Urban Population

Urban Population in Slums

Youth Literacy Rate

 

To retrieve specific information from the Country data set, such as the data corresponding to the "Services Share of Employment" for Canada:

ref_CAN := ref["Canada", `Services Share of Employment`];

ref_CANData setEmployment in services (% of total employment) - CanadaQuandl WWDI/CAN_SL_SRV_EMPL_ZSup to 51 rows (annual), 1 column1969-12-31 - 2019-12-31

(2)

This can be visualized using a TimeSeriesPlot:

TimeSeriesAnalysis:-TimeSeriesPlot( ref_CAN );

More examples for interacting with the Country data set can be found on the Reference help page. Also see the Visualizing Multiple Data Sets with BubblePlot application.