Downloads one ilostat dictionary from ilostat https://ilostat.ilo.org via bulk download facility https://ilostat.ilo.org/data/bulk/.

get_ilostat_dic(dic, lang = getOption("ilostat_lang", "en"))

Arguments

dic

A character, dictionary for the variable to be downloaded,

lang

a character, code for language. Available are "en" (default), "fr" and "es". Can be set also with options(ilostat_lang = 'fr'),

Value

tibble with two columns: code names and full names.

Details

For a given coded variable from ilostat https://ilostat.ilo.org/. The dictionaries link codes with human-readable labels. To translate codes to labels, use label_ilostat.

References

See citation("Rilostat") ilostat bulk download facility user guidelines https://webapps.ilo.org/ilostat-files/WEB_bulk_download/ILOSTAT_BulkDownload_Guidelines.pdf ilostat bulk download facility main page https://ilostat.ilo.org/data/bulk/

Author

David Bescond bescond@ilo.org

Examples

if (FALSE) { # \dontrun{
 tmp <- get_ilostat_dic("indicator")
 head(tmp)
 tmp <- get_ilostat_dic("classif1", lang = "fr")
 head(tmp)
} # }