getData: Query Data ILOSTAT

Description Usage Arguments Details Author(s) See Also Examples

Description

Query data from ILOSTAT SDMX API

Usage

1
getData(DSD, test = "-test")

Arguments

DSD

a datastructure definition identified by the triplet [collection; country; indicator]. Arguments description come from 'http://www.ilo.org/ilostat/content/conn/ILOSTATContentServer/path/Contribution Folders/statistics/web_pages/static_pages/technical_page/ilostat_appl/SDMX_User_Guide.pdf' .

test

internal ILO test parameter.

Details

Helper function to efficiently query data from ILOSTAT SDMX API.

Author(s)

ILO bescond

See Also

getCodelist getDataStructure

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
################################## use to fetch data and metadata related

# example with attribute
res <- getData("YI_AFG_EMP_TEMP_SEX_AGE_NB/....")

# example without attribute
res <- getData("YI_AFG_ALL/......?detail=dataonly")

# example of last N data
res <- getData("YI_AFG_EMP_TEMP_SEX_AGE_NB/......?lastNObservations=1")   

# example of first N data
res <- getData("YI_AFG_EMP_TEMP_SEX_AGE_NB/......?firstNObservations=2")

# example with multi country
res <- getData("YI_ALL_EMP_TEMP_SEX_AGE_NB/.MEX+ESP.....")

# check availability of time series	
res <- getData("YI_FRA_EMP_TEMP_SEX_AGE_NB/......?detail=serieskeysonly")
### as from 2009
res <- getData("YI_ALL_EMP_TEMP_SEX_AGE_NB/......?startPeriod=2009-01-01&detail=serieskeysonly")

dbescond/Artemis documentation built on May 15, 2019, 1:21 a.m.