View source: R/deprecated_regions_functions.R
recode_to_nuts_2016 | R Documentation |
Eurostat mixes NUTS2013 and NUTS2016 geographic label codes
in the 'geo'
column, which creates time-wise comparativity issues.
This function is deprecated, and a more general function was moved to
[regions::recode_nuts()]
.
recode_to_nuts_2016(dat)
dat |
A Eurostat data frame downloaded with
|
An augmented and potentially relabelled data frame which
contains all formerly 'NUTS2013'
definition geo labels in the
'NUTS2016'
vocabulary when only the code changed, but the
boundary did not. It also contains some information on other geo labels
that cannot be brought to the current 'NUTS2016'
definition.
Furthermore, when the official name of the region changed, it will use
the new name (if the otherwise the region boundary did not change.)
If not called before, the function will use the helper function
harmonize_geo_code()
Daniel Antal
regions::recode_nuts()
Other regions functions:
add_nuts_level()
,
harmonize_geo_code()
,
recode_to_nuts_2013()
,
reexports
test_regional_codes <- data.frame(
geo = c("FRB", "FRE", "UKN02", "IE022", "FR243", "FRB03"),
time = c(rep(as.Date("2014-01-01"), 5), as.Date("2015-01-01")),
values = c(1:6),
control = c(
"Changed from NUTS2 to NUTS1",
"New region NUTS2016 only",
"Discontinued region NUTS2013",
"Boundary shift NUTS2013",
"Recoded in NUTS2013",
"Recoded in NUTS2016"
)
)
recode_to_nuts_2016(test_regional_codes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.