United Nations table of locations, including regions, for statistical purposes as available in 2015.
data(UNlocations)A data frame with one observations per country or region. It contains the following seven variables:
nameName of country or region (following ISO 3166 official short names in English - see https://www.iso.org/obp/ui/#search/code/ and United Nations Multilingual Terminology Database - see http://unterm.un.org).
country_codeNumerical Location Code (3-digit codes following ISO 3166-1 numeric standard) - see http://en.wikipedia.org/wiki/ISO_3166-1_numeric.
reg_codeCode of the regions.
reg_nameName of the regions.
area_codeArea code.
area_nameArea names, such as Africa, Asia, Europe Latin America and the Caribbean, Northern America, Oceania, World.
location_typeCode giving the type of the observation: 0=World, 2=Major Area, 3=Region, 4=Country/Area, 5=Development group, 12=Special groupings. Other numbers are allowed and they can be used for aggregation, see below.
agcode_1500, agcode_1501, agcode_1502, agcode_1503, agcode_1517, agcode_901, agcode_902, agcode_921, agcode_934, agcode_941, agcode_947, agcode_948Optional columns that can be used for aggregations. To aggregate a region with country_code=\(x\), get the value of its location_type, say \(y\). Then look for the column agcode_y and locate all records with agcode_y=\(x\) that have location_type=4.
# NOT RUN {
data(UNlocations)
# }
Run the code above in your browser using DataLab