Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/get_ilostat_toc.R
Download one table of contents from ilostat https://ilostat.ilo.org via bulk download facility https://ilostat.ilo.org/data/bulk/.
1 2 3 4 5 6 7 |
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 |
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.
The TOC in English by modelled_estimates is downloaded from https://www.ilo.org/ilostat-files/WEB_bulk_download/modelled_estimates/table_of_contents_en.csv. The values in column 'id' should be used to download a selected dataset.
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
David Bescond bescond@ilo.org
See citation("Rilostat") ilostat bulk download facility user guidelines https://www.ilo.org/ilostat-files/WEB_bulk_download/ILOSTAT_BulkDownload_Guidelines.pdf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ## Not run:
## 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)
##
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.