nuts_get_missing {nuts}R Documentation

Return missing NUTS codes in classified NUTS data

Description

nuts_get_missing() returns the classified data after running nuts_classify().

Usage

nuts_get_missing(data)

Arguments

data

A nuts.classified object returned by nuts_classify().

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 listing missing NUTS codes for each group.

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_missing(classified)


[Package nuts version 1.0.0 Index]