get_ilostat_dic: Read ilostat dictionary

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/get_ilostat_dic.R

Description

Downloads one ilostat dictionary from ilostat www.ilo.org/ilostat via bulk download facility http://www.ilo.org/ilostat-files/WEB_bulk_download/html/bulk_main.html.

Usage

1
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'),

Details

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

Value

tibble with two columns: code names and full names.

Author(s)

ILO Department of Statistics [email protected]

References

See citation("ilostat") ilostat bulk download facility user guidelines http://www.ilo.org/ilostat-files/WEB_bulk_download/ILOSTAT_BulkDownload_Guidelines.pdf ilostat bulk download facility main page http://www.ilo.org/ilostat-files/WEB_bulk_download/html/bulk_main.html

See Also

label_ilostat, get_ilostat.

Examples

1
2
3
4
5
6
7
## Not run: 
	       tmp <- get_ilostat_dic("indicator")
	       head(tmp)
	       tmp <- get_ilostat_dic("classif1", lang = "fr")
	       head(tmp)

## End(Not run)

dbescond/ilostat documentation built on July 17, 2017, 8:05 p.m.