get_country_code {regions} | R Documentation |
Get Country Code Of Regions
Description
The function identifies the sub-national geographical identifiers from known typologies and returns the ISO 3166-1 alpha-2 country codes.
Usage
get_country_code(geo, typology = "NUTS")
Arguments
geo |
A character variable with geo codes. |
typology |
Currently the following typologies are supported:
|
Value
The ISO 3166-1 alpha-2 codes of the countries as a character vector.
See Also
Other recode functions:
recode_nuts()
Examples
{
get_country_code (c("EL", "GR", "DED", "HU102"))
}
[Package regions version 0.1.8 Index]