nuts_get_version {nuts} | R Documentation |
Return version overlap of classified NUTS data
Description
nuts_get_version()
returns the classified data after running nuts_classify()
.
Usage
nuts_get_version(data)
Arguments
data |
A nuts.classified object returned by |
Details
Console messages can be controlled with rlang::local_options(nuts.verbose = "quiet")
to silence messages and
nuts.verbose = "verbose"
to switch messages back on.
Value
A tibble that lists the group-specific overlap with each NUTS version.
Examples
library(dplyr)
# Load EUROSTAT data of manure storage deposits
data(manure)
# Classify version of NUTS 2 codes in Germany
classified <- manure %>%
filter(nchar(geo) == 4) %>%
filter(indic_ag == 'I07A_EQ_Y') %>%
filter(grepl('^DE', geo)) %>%
filter(time == 2003) %>%
select(-indic_ag, -time) %>%
# Data varies at the NUTS code level
nuts_classify(nuts_code = 'geo')
nuts_get_version(classified)
[Package nuts version 1.1.0 Index]