Download one table of contents from ilostat https://ilostat.ilo.org via bulk download facility https://ilostat.ilo.org/data/bulk/.
get_ilostat_toc( segment = getOption("ilostat_segment", "indicator"), lang = getOption("ilostat_lang", "en"), search = getOption("ilostat_search", "none"), filters = getOption("ilostat_filter", "none"), fixed = getOption("ilostat_fixed", TRUE) )
segment | A character, way to get datasets by: |
---|---|
lang | a character, code for language. Available are |
search | a character vector, "none" (default), datasets with this pattern in the description will be returned, characters vector will be use as AND, Character with '|' as OR, see example, options(ilostat_time_format = 'date'), |
filters | a list; |
fixed | a logical, if |
A tibble with ten columns depending of the segment: indicator or ref_area
id
: The codename of dataset of theme, will be used by the get_ilostat and get_ilostat_raw functions,
indicator or ref_area
: The indicator or ref_area code of dataset,
indicator.label or ref_area.label
: The indicator or ref_area name of dataset,
freq
: The frequency code of dataset,
freq.label
: Is freq name of dataset,
size
: Size of the csv.gz files,
data.start
: First time period of the dataset,
data.end
: Last time period of the dataset,
last.update
: Last update of the dataset,
...
: Others relevant information
The TOC in English by indicator is downloaded from https://www.ilo.org/ilostat-files/WEB_bulk_download/indicator/table_of_contents_en.csv. The values in column 'id' should be used to download a selected dataset.
The TOC in English by ref_area is downloaded from https://www.ilo.org/ilostat-files/WEB_bulk_download/ref_area/table_of_contents_en.csv. The values in column 'id' should be used to download a selected dataset.
See citation("Rilostat") ilostat bulk download facility user guidelines https://www.ilo.org/ilostat-files/WEB_bulk_download/ILOSTAT_BulkDownload_Guidelines.pdf
David Bescond bescond@ilo.org
if (FALSE) { ## default segment by indicator, default lang English toc <- get_ilostat_toc() head(toc) toc <- get_ilostat_toc(segment = 'ref_area', lang = 'fr') head(toc) ## ## search on toc toc <- get_ilostat_toc(search = 'education') head(toc) toc <- get_ilostat_toc(lang = 'fr', search = 'éducation') head(toc) toc <- get_ilostat_toc(segment = 'ref_area', lang = 'fr', search = 'Albanie') toc toc <- get_ilostat_toc(segment = 'ref_area', lang = 'es', search = 'Trimestral') head(toc) ## ## search multi on toc toc <- get_ilostat_toc(segment = 'ref_area', lang = 'fr', search = 'Albanie|France', fixed = FALSE) head(toc) toc <- get_ilostat_toc(search = 'youth|adult', fixed = FALSE) head(toc) toc <- get_ilostat_toc(search = c('youth','adult'), fixed = FALSE) head(toc) ## }