Learn R Programming

nuts


Changing administrative regional boundaries over time complicates the construction of consistent regional panel data. The nuts package can transform European regional data identified by NUTS codes between different versions and subdivision levels with the aim to harmonize and link data sets.

The package's main task is to convert data between all NUTS versions in use: 2006, 2010, 2013, 2016 and 2021. These conversions can be performed in any direction based on spatial interpolation using five different weights (regional area in square kilometers, 2011 and 2018 population size, 2012 and 2018 built-up area). The weights are based on conversion tables provided by the Joint Research Center (JRC) of the European Commission (EC) that are used in their online converter. The nuts package permits to do the same conversion offline with additional advantages such as the conversion within groups, enabling the conversion of datasets with multiple NUTS versions efficiently.

Installation

You can install the package from the rOpenSci repository:

install.packages("nuts", repos = "https://ropensci.r-universe.dev")

Usage

Check out the website how to get started.

Verbosity Control

Console messages can be controlled with rlang::local_options(nuts.verbose = "quiet") to silence messages and setting nuts.verbose = "verbose" to switch messages back on.

Citation

Please support the development of open science and data by citing the JRC and us in your work:

https://doi.org/10.5281/zenodo.10573056, R package version 1.1.0, https://docs.ropensci.org/nuts/.

Bibtex Users:

@Manual{,
  title = {NUTS converter},
  author = {Joint Research Centre},
  year = {2022},
  url = {https://urban.jrc.ec.europa.eu/tools/nuts-converter},
}

@Manual{,
  title = {nuts: Convert European Regional Data},
  author = {Moritz Hennicke and Werner Krause},
  year = {2024},
  note = {R package version 1.1.0},
  url = {https://docs.ropensci.org/nuts/},
  doi = "https://doi.org/10.5281/zenodo.10573056",
}

Copy Link

Version

Install

install.packages('nuts')

Monthly Downloads

238

Version

1.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Moritz Hennicke

Last Published

July 13th, 2024

Functions in nuts (1.1.0)

nuts_aggregate

Aggregate to higher order NUTS levels
all_nuts_codes

List of all NUTS codes and classifications
manure

Manure storage facilities by NUTS 3 regions from Eurostat (aei_fm_ms)
nuts-package

nuts: Convert European Regional Data
cross_walks

Conversion table provided by the Joint Research Center of the European Commission
nuts_convert_version

Convert between NUTS versions
nuts_get_data

Return classified NUTS data
nuts_get_missing

Return missing NUTS codes in classified NUTS data
nuts_get_version

Return version overlap of classified NUTS data
nuts_classify

Classify version of NUTS codes
nuts_test_multiple_versions

Helper function to test for multiple versions
patents

Patent applications to the EPO by priority year by NUTS 3 regions (pat_ep_rtot)