Description Usage Arguments Details Value Examples
Retrieves metadata about a dataset. The result contains eg. information about variables and their values used when extracting data.
1 | StatBank.GetData(TableId, lang = "DA", variables = NULL)
|
TableId |
character("TableId"); Table id to extract metadata from - get a list of TableId using |
lang |
character("DA", "ENG); Language to export Danish "DA" (default) or English ENG |
variables |
list(Variableid = c(Value-ids)); list of variable or variables to include in the API call - see details |
To include variables to the API call build a list, where each object in the list is named with the Variableid and value added as character or character list. Use StatBank.GetMetadata
to get a list of variables or browse http://www.statistikbanken.dk/.
Returns a Data Frame
1 2 3 4 | #Building a list to get variables indto the call - note that * includes all values of that variable
variablelist <- list(UDDANNELSE = c("H40", "H4020", "H402015", "H4024"), FSTATUS = "*")
StatBank.GetData("UDDAKT40", variables = variablelist)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.