getDataStructure: Query Data ILOSTAT

Description Usage Arguments Details Author(s) See Also Examples

Description

Query data from ILOSTAT SDMX API

Usage

1
2
getDataStructure(DSD = "YI_ALB_EAP_TEAP_SEX_AGE_NB",
  dimension = "conceptRef", component = FALSE, lang = "en", test = NULL)

Arguments

DSD

a datastructure definition identified by the triplet [collection; country; indicator].

dimension

for scheme "datastructure": the format of dimensions returned. The dimension format "codelist" is compatible with scheme "codelist".

component

default FALSE return just the name else all components.

lang

if component = TRUE return label in es, fr or en .

test

internal ILO test parameter.

Details

Helper function to efficiently query data from ILOSTAT SDMX API.

Author(s)

ILO bescond

See Also

getData getCodelist

Examples

 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
29
30
31
################################# use to identify 'codelist'		

# fetch structure of codelists in YI collection 
res <- getDataStructure(dimension = "codelist", DSD = "YI_ALL_ALL") 	

# fetch structure of codelists in YI collection for MEX country
res <- getDataStructure(dimension = "codelist", DSD = "YI_MEX_ALL") 	

# fetch structure of codelists in YI collection for a specific indicator 
res <- getDataStructure(dimension = "codelist", DSD = "YI_ALL_UNE_TUNE_SEX_AGE_NB") 

################################# use to define correct 'filter'

# fetch structure of conceptRef in YI collection 
res <- getDataStructure(DSD = "YI_ALL_ALL", dimension = "conceptRef") 	

res <- getDataStructure(DSD = "YI_ALB_ALL", dimension = "conceptRef")

res <- getDataStructure(DSD = "YI_ALL_EMP_TEMP_SEX_AGE_NB", dimension = "conceptRef")

################################# use to get the all data structure 'filter'

res <- getDataStructure(DSD = "YI_FRA_EMP_TEMP_SEX_AGE_NB", component = TRUE)
names(res) 
## return a list with : 
## --KeyFamily = df definition of this DSD
res$KeyFamily
## --dataStructure = df data structure definition with dimensions and attributes	
res$dataStructure
## --codelist = list of codelists df		
names(res$codelist) 	; res$codelist$CL_COUNTRY	

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