UN_M.49: UN M.49 Area Codes

Description Usage Details Source Examples

Description

Country and area code classifications (M49) from the United Nations Statistics Division.

Usage

1
2

Details

UN M.49 is a standard for area codes used by the United Nations for statistical purposes. Each area code is a 3-digit number which can refer to a wide variety of geographical, political, or economic regions, like a continent, a country, or a specific group of developing countries.

UN_M.49_Countries contains the codes for countries and areas as a character frame with variables Code, Name and ISO_Alpha_3 giving the 3-letter UN M.49 code and name and the respective alpha-3 ISO 3166 code.

UN_M.49_Regions contains the codes for the composition of macro geographical (continental) regions, geographical sub-regions, and selected economic and other groupings as a data frame with the character variables Code, Name, Parent and Children giving the 3-letter UN M.49 code, name, the code of the parent area and the codes of children areas separated by , , respectively, and variable Type, a factor with levels "Region" or "Grouping".

Source

http://unstats.un.org/unsd/methods/m49/m49.htm

Examples

1
2
3
4
5
6
## Name and codes of countries in Southern Europe:
data("UN_M.49_Regions")
data("UN_M.49_Countries")
region <- subset(UN_M.49_Regions, Name == "Southern Europe")
codes <- unlist(strsplit(region$Children, ", "))
subset(UN_M.49_Countries, Code %in% codes)

Example output

    Code                                      Name ISO_Alpha_3
3    008                                   Albania         ALB
6    020                                   Andorra         AND
28   070                    Bosnia and Herzegovina         BIH
54   191                                   Croatia         HRV
84   292                                 Gibraltar         GIB
85   300                                    Greece         GRC
96   336                                  Holy See         VAT
107  380                                     Italy         ITA
131  470                                     Malta         MLT
141  499                                Montenegro         MNE
169  620                                  Portugal         PRT
186  674                                San Marino         SMR
191  688                                    Serbia         SRB
197  705                                  Slovenia         SVN
202  724                                     Spain         ESP
214  807 The former Yugoslav Republic of Macedonia         MKD

ISOcodes documentation built on Sept. 28, 2017, 1:06 a.m.

Related to UN_M.49 in ISOcodes...