importDimLabel: Import Eurostat label (description) of a given dimension code

View source: R/extras.R

importDimLabelR Documentation

Import Eurostat label (description) of a given dimension code

Description

Import the appropriate description file for the selected Eurostat dimension, e.g. for "geo" it is "Geopolitical entity (reporting)", for "nace_r2" it is "Classification of economic activities - NACE Rev.2", for "indic_sb" it is "Economical indicator for structural business statistics" etc. Click on "Code lists" just under "Apply download operations on" at https://ec.europa.eu/eurostat/databrowser/bulk?lang=en for the list of all codes. Each description is imported from inside the XML file (via the path: m:Structure / m:Structures / s:Codelists / s:Codelist / c:Name xml:lang="en") from the respective URL, e.g. for "geo" it is https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/codelist/ESTAT/GEO.

Usage

importDimLabel(EurostatDimCode)

Arguments

EurostatDimCode

A string – the code name of the Eurostat dimension, e.g. "geo" or "nace_r2" or "indic_sb", etc.

Value

A character vector of length 1: the label/description of EurostatDimCode.

Examples

## Not run: 
importDimLabel('nace_r2')

## End(Not run)

alekrutkowski/eurodata documentation built on Nov. 20, 2024, 10:17 p.m.