CountryData | R Documentation |
The CIA Factbook has geographic, demographic, and economic data on a country-by-country basis. In the description of the variables, the 4-digit number indicates the code used to specify that variable on the data and documentation web site. For instance, https://www.cia.gov/library/publications/the-world-factbook/fields/2153.html contains documentation for variable code 2153, network users.
data("CountryData")
A data frame on the following 76 variables for each of 256 Countries in the World.
Name of the country.
area (sq km), 2147
number of people, 2119
growth rate per year (%),2002
birth rate (#/1000), 2054
death rate (#/1000), 2066
net migration per year (#/1000). Difference between incoming and outgoing. 2112
maternal deaths per 100,000 live births. 2223
infant deaths per 1000 live births. 2091
life expectancy (years), 2102
children born/woman (#/person), 2127
health spending (% of GDP), 2225
people with HIV (% of population), 2155
people with HIV (#), 2156
deaths from HIV (#/year), 2157
fraction of population considered obese (%), 2228
education spending (% of GDP), 2206
education spending (% of GDP), 2206
youth unemployment (%), 2229
Gross Domestic Product ($), 2001
growth in GDP (%/year), 2003
GDP per capita ($/person), 2004
yearly money savings (% of GDP), 2260
Industrial production growth rate (%), 2089
Labor force (people), 2095
Unemployment rate (%), 2129
Distribution of family income - Gini index (Gini index), 2172
Taxes and other revenues (% of GDP), 2221
Budget surplus (+) or deficit (-) (% of GDP), 2222
Public debt (% of GDP), 2186
Inflation rate (consumer prices) (%), 2092
Central bank discount rate (%), 2207
Commercial bank prime lending rate (%), 2208
Stock of narrow money ($), 2214
Stock of broad money ($), 2215
Stock of domestic credit ($), 2211
Market value of publicly traded shares ($), 2200
Current account balance ($), 2187
Exports ($), 2078
Imports ($), 2087
Reserves of foreign exchange and gold ($), 2188
Debt - external ($), 2079
Stock of direct foreign investment - at home ($), 2198
Stock of direct foreign investment - abroad ($), 2199
Electricity - production (kWh), 2232
Electricity - consumption (kWh), 2233
Electricity - exports (kWh), 2234
Electricity - imports (kWh), 2235
Electricity - installed generating capacity (kW), 2236
Electricity - from fossil fuels (% of total installed capacity), 2237
Electricity - from nuclear fuels (% of total installed capacity), 2239
Electricity - from hydroelectric plants (% of total installed capacity), 2238
Electricity - from other renewable sources (% of total installed capacity), 2240
Crude oil - production (bbl/day), 2241
Crude oil - exports (bbl/day), 2242
Crude oil - imports (bbl/day), 2243
Crude oil - proved reserves (bbl), 2244
Refined petroleum products - production (bbl/day), 2245
Refined petroleum products - consumption (bbl/day), 2246
Refined petroleum products - exports (bbl/day), 2247
Refined petroleum products - imports (bbl/day), 2248
Natural gas - production (cu M), 2249
Natural gas - consumption (cu M), 2250
Natural gas - exports (cu M), 2251
Natural gas - imports (cu M), 2252
Natural gas - proved reserves (cu M), 2253
Telephones - main lines in use (mainlines in use), 2150
Telephones - mobile cellular (cellphones), 2151
Internet hosts (#), 2184
Internet users (#), 2153
Airports (#), 2053
Railways (km), 2121
Roadways (km), 2085
Waterways (km), 2093
Merchant marine (# of ships), 2108
Military expenditures (% of GDP), 2034
These data were collected using the 'mosaic::CIAdata()' function. See the output of 'mosaic::CIAdata()' and Internet search "CIA Factbook NNNN", where NNNN is the 4-digit code used for indexing the data at the CIA.
From the CIA World Factbook, https://www.cia.gov/library/publications/the-world-factbook/ For package maintainers: The lines to construct the file are in 'inst/datafixes.R'.
data(CountryData) str(CountryData)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.