Country codes published by the International Organization for Standardization (ISO) define codes for the names of countries, dependent territories, and special areas of geographical interest.
data("d.countries")A data frame with 249 observations on the following 4 variables.
namea character vector, the name of the country.
a2a character vector, two-letter country codes (aka alpha-2) which are the most widely used of the three, and used most prominently for the Internet's country code top-level domains (with a few exceptions).
a3a character vector, three-letter country codes (aka alpha-3) which allow a better visual association between the codes and the country names than the alpha-2 codes.
codea numeric vector, three-digit country codes which are identical to those developed and maintained by the United Nations Statistics Division, with the advantage of script (writing system) independence, and hence useful for people or systems using non-Latin scripts.
regionthe region of the country. One of "East Asia & Pacific" (35), "Europe & Central Asia" (52), "Latin America & Caribbean" (41), "Middle East & North Africa" (20), "North America" (3), "South Asia" (8), "Sub-Saharan Africa" (47)
pop2012the population in 2012
gcpi2012the gross national income (per capita) in dollars per country in 2012.
http://en.wikipedia.org/wiki/ISO_3166-1 http://data.worldbank.org/data-catalog/health-nutrition-and-population-statistics
# NOT RUN {
head(d.countries)
# }
Run the code above in your browser using DataLab