Description Usage Format Details Source Examples
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.
| 1 | data("CountryData")
 | 
A data frame on the following 76 variables for each of the Countries in the World. (256 countries are given.)
countryName of the country.
areaarea (sq km), 2147
popnumber of people, 2119
growthgrowth rate per year (%),2002
birthbirth rate (#/1000), 2054
deathdeath rate (#/1000), 2066
migrnet migration per year (#/1000). Difference between incoming and outgoing. 2112
maternalmaternal deaths per 100000 live births. 2223
infantinfant deaths per 1000 live births. 2091
lifelife expectancy (years), 2102
fertchildren born/woman (#/person), 2127
healthhealth spending (% of GDP), 2225
HIVratepeople with HIV (% of population), 2155
HIVpeoplepeople with HIV (#), 2156
HIVdeathdeaths from HIV (#/year), 2157
obesityfraction of population considered obese (%), 2228
underweightfraction of population considered underweight (%), 2224
educeducation spending (% of GDP), 2206
unemploymentYouthyouth unemployment (%), 2229
GDPGross Domestic Product ($), 2001
GDPgrowthgrowth in GDP (%/year), 2003
GDPcapitaGDP per capita ($/person), 2004
savingyearly money savings (% of GDP), 2260
indProdIndustrial production growth rate (%), 2089
laborLabor force (people), 2095
unemploymentUnemployment rate (%), 2129
familyDistribution of family income - Gini index (Gini index), 2172
taxTaxes and other revenues (% of GDP), 2221
budgetBudget surplus (+) or deficit (-) (% of GDP), 2222
debtPublic debt (% of GDP), 2186
inflationInflation rate (consumer prices) (%), 2092
discountCentral bank discount rate (%), 2207
lendingCommercial bank prime lending rate (%), 2208
narrowStock of narrow money ($), 2214
broadStock of broad money ($), 2215
creditStock of domestic credit ($), 2211
sharesMarket value of publicly traded shares ($), 2200
balanceCurrent account balance ($), 2187
exportsExports ($), 2078
importsImports ($), 2087
goldReserves of foreign exchange and gold ($), 2188
externalDebtDebt - external ($), 2079
homeStockStock of direct foreign investment - at home ($), 2198
abroadStockStock of direct foreign investment - abroad ($), 2199
elecProdElectricity - production (kWh), 2232
elecConsElectricity - consumption (kWh), 2233
elecExpElectricity - exports (kWh), 2234
elecImpElectricity - imports (kWh), 2235
elecCapElectricity - installed generating capacity (kW), 2236
elecFossilElectricity - from fossil fuels (% of total installed capacity), 2237
elecNucElectricity - from nuclear fuels (% of total installed capacity), 2239
elecHydroElectricity - from hydroelectric plants (% of total installed capacity), 2238
elecRenewElectricity - from other renewable sources (% of total installed capacity), 2240
oilProdCrude oil - production (bbl/day), 2241
oilExpCrude oil - exports (bbl/day), 2242
oilImpCrude oil - imports (bbl/day), 2243
oilResCrude oil - proved reserves (bbl), 2244
petroProdRefined petroleum products - production (bbl/day), 2245
petroConsRefined petroleum products - consumption (bbl/day), 2246
petroExpRefined petroleum products - exports (bbl/day), 2247
petroImpRefined petroleum products - imports (bbl/day), 2248
gasProdNatural gas - production (cu M), 2249
gasConsNatural gas - consumption (cu M), 2250
gasExpNatural gas - exports (cu M), 2251
gasImpNatural gas - imports (cu M), 2252
gasResNatural gas - proved reserves (cu M), 2253
mainlinesTelephones - main lines in use (mainlines in use), 2150
cellTelephones - mobile cellular (cellphones), 2151
netHostsInternet hosts (#), 2184
netUsersInternet users (#), 2153
airportsAirports (#), 2053
railwaysRailways (km), 2121
roadwaysRoadways (km), 2085
waterwaysWaterways (km), 2093
marineMerchant marine (# of ships), 2108
militaryMilitary expenditures (% of GDP), 2034
These data were collected using the CIAdata() function.
THE DOCUMENTATION NEEDS COMPLETING.  See the output of CIAdata() and Google "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.
| 1 2 | data(CountryData)
## maybe str(CountryData) ; plot(CountryData) ...
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.