Download a Eurostat dictionary.
Arguments
- dictname
A character, dictionary for the variable to be downloaded.
- lang
A character, language code. Options: "en" (default), "fr", "de".
Details
For given coded variable from Eurostat
https://ec.europa.eu/eurostat/. The dictionaries link codes with
human-readable labels. To translate codes to labels, use
label_eurostat()
.
References
See citation("eurostat")
:
# Kindly cite the eurostat R package as follows:
#
# Lahti L., Huovari J., Kainu M., and Biecek P. (2017). Retrieval and
# analysis of Eurostat open data with the eurostat package. The R
# Journal 9(1), pp. 385-392. doi: 10.32614/RJ-2017-019
#
# A BibTeX entry for LaTeX users is
#
# @Article{10.32614/RJ-2017-019,
# title = {Retrieval and Analysis of Eurostat Open Data with the eurostat Package},
# author = {Leo Lahti and Janne Huovari and Markus Kainu and Przemyslaw Biecek},
# journal = {The R Journal},
# volume = {9},
# number = {1},
# pages = {385--392},
# year = {2017},
# doi = {10.32614/RJ-2017-019},
# url = {https://doi.org/10.32614/RJ-2017-019},
# }
#
# Lahti, L., Huovari J., Kainu M., Biecek P., Hernangomez D., Antal D.,
# and Kantanen P. (2023). eurostat: Tools for Eurostat Open Data
# [Computer software]. R package version 4.0.0.
# https://github.com/rOpenGov/eurostat
#
# A BibTeX entry for LaTeX users is
#
# @Misc{eurostat,
# title = {eurostat: Tools for Eurostat Open Data},
# author = {Leo Lahti and Janne Huovari and Markus Kainu and Przemyslaw Biecek and Diego Hernangomez and Daniel Antal and Pyry Kantanen},
# url = {https://github.com/rOpenGov/eurostat},
# type = {Computer software},
# year = {2023},
# note = {R package version 4.0.0},
# }
Author
Przemyslaw Biecek and Leo Lahti leo.lahti@iki.fi. Thanks to Wietse Dol for contributions. Updated by Pyry Kantanen to support XML codelists.
Examples
# \donttest{
get_eurostat_dic("crop_pro")
#> # A tibble: 224 × 2
#> code_name full_name
#> <chr> <chr>
#> 1 C1040 Cereals for the production of grain (including rice and seed)
#> 2 C1050 Cereals (excluding rice)
#> 3 C1100 Wheat (including spelt)
#> 4 C1120 Common wheat and spelt
#> 5 C1123 Common winter wheat
#> 6 C1124 Common spring wheat
#> 7 C1130 Durum wheat
#> 8 C1133 Winter durum wheat
#> 9 C1134 Spring durum wheat
#> 10 C1140 Rye and maslin
#> # ℹ 214 more rows
# Try another language
get_eurostat_dic("crop_pro", lang = "fr")
#> # A tibble: 224 × 2
#> code_name full_name
#> <chr> <chr>
#> 1 C1040 Céréales pour la production de grains (riz et semence compris)
#> 2 C1050 Céréales (à l'exception du riz)
#> 3 C1100 Blé (épeautre compris)
#> 4 C1120 Blé tendre et épeautre
#> 5 C1123 Blé tendre d'hiver
#> 6 C1124 Blé tendre de printemps
#> 7 C1130 Blé dur
#> 8 C1133 Blé dur d'hiver
#> 9 C1134 Blé dur de printemps
#> 10 C1140 Seigle et méteil
#> # ℹ 214 more rows
# }