scbGetDims: Get data dimensions form a bottom node in SCB API

Description Usage Arguments See Also Examples

Description

Deparse and reorder data form the metadata object for pretty output

Usage

1
scbGetDims(node, verbose = TRUE)

Arguments

node

Bottom node to deparse into object

verbose

Verbose output mode.

See Also

scbGetMetadata

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## CONTINUED FROM EXAMPLES IN scbGetMetadata()
# Get metadata for a named variable
url <- paste(c(baseURL(),"AM","AM0102","AM0102A","KLStabell14LpMan"), collapse="/")
metadata <- scbGetMetadata(url)

# Get dimensions (names of dimensions are printed in the terminal)
dims <- scbGetDims(metadata)

# Get data
test <- scbGetData(metadata$URL, dims=list(
   Myndighet = "C02",
   Kon = "*",
   Heltiddeltid = "*",
   ContentsCode = "*",
   Tid = "*"
))

LCHansson/sweSCB documentation built on May 8, 2019, 5:46 p.m.