getCount: Query Data ILOSTAT

Description Usage Arguments Details Author(s) See Also Examples

Description

Query data from ILOSTAT SDMX API

Usage

1
getCount(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' .

Details

Helper function to efficiently query data from ILOSTAT SDMX API.

Author(s)

ILO bescond

See Also

getCodelist getDataStructure getData

Examples

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

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

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

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

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

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

# check availability of time series	
res <- getCount("YI_ALL_EMP_TEMP_SEX_AGE_NB/.....?detail=serieskeysonly")
### as from 2009
res <- getCount("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.