View source: R/deprecated_regions_functions.R
add_nuts_level | R Documentation |
Eurostat regional statistics contain country, and various regional level information. In many cases, for example, when mapping, it is useful to filter out national level data from NUTS2 level regional data, for example.
This function will be deprecated. Use the more comprehensive
[regions::validate_nuts_regions()]
instead.
add_nuts_level(dat, geo_labels = "geo")
dat |
A data frame or tibble returned by |
geo_labels |
A geographical label, defaults to |
DEPRECATED FUNCTIONS FOR BACKWARD COMPATIBILITY FUNCTIONS GIVE WARNING AND CALL APPROPRIATE regions FUNCTIONS
a new numeric variable nuts_level with the numeric value of NUTS level 0 (country), 1 (greater region), 2 (region), 3 (small region).
Daniel Antal
regions::validate_nuts_regions()
Other regions functions:
harmonize_geo_code()
,
recode_to_nuts_2013()
,
recode_to_nuts_2016()
,
reexports
dat <- data.frame(
geo = c("FR", "IE04", "DEB1C"),
values = c(1000, 23, 12)
)
add_nuts_level(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.