View source: R/harmonize_country_code.R
harmonize_country_code | R Documentation |
The European Commission and the Eurostat generally uses ISO 3166-1 alpha-2 codes with two exceptions: EL (not GR) is used to represent Greece, and UK (not GB) is used to represent the United Kingdom. This function turns country codes into to ISO 3166-1 alpha-2.
harmonize_country_code(x)
x |
A character or a factor vector of eurostat countycodes. |
a vector.
Janne Huovari janne.huovari@ptt.fi
Other helpers:
cut_to_classes()
,
dic_order()
,
eurotime2date()
,
eurotime2num()
,
label_eurostat()
lp <- get_eurostat("nama_10_lp_ulc")
lp$geo <- harmonize_country_code(lp$geo)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.