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.
See also
Other helpers:
cut_to_classes()
,
dic_order()
,
eurotime2date()
,
eurotime2num()
,
label_eurostat()
Author
Janne Huovari janne.huovari@ptt.fi
Examples
# \donttest{
lp <- get_eurostat("nama_10_lp_ulc")
#> Dataset query already saved in cache_list.json...
#> Reading cache file /tmp/RtmpvrJG9l/eurostat/cedafdd353ed75adf113f4796119ce52.rds
#> Table nama_10_lp_ulc read from cache file: /tmp/RtmpvrJG9l/eurostat/cedafdd353ed75adf113f4796119ce52.rds
lp$geo <- harmonize_country_code(lp$geo)
# }