Description Usage Arguments Value See Also Examples
View source: R/get_country_code.R
The function identifies the sub-national geographical identifiers from known typologies and returns the ISO 3166-1 alpha-2 country codes.
1 | get_country_code(geo, typology = "NUTS")
|
geo |
A character variable with geo codes. |
typology |
Currently the following typologies are supported:
|
The ISO 3166-1 alpha-2 codes of the countries as a character vector.
Other recode functions:
recode_nuts()
1 2 3 | {
get_country_code (c("EL", "GR", "DED", "HU102"))
}
|
[1] "GR" "GR" "DE" "HU"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.