
Last chance! 50% off unlimited learning
Sale ends in
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)
A character or a factor vector of eurostat countycodes.
a vector.
# NOT RUN {
# }
# NOT RUN {
lp <- get_eurostat("nama_aux_lp")
lp$geo <- harmonize_country_code(lp$geo)
# }
Run the code above in your browser using DataLab