StatBank.GetData: Get Data from Statistics Denmarks

Description Usage Arguments Details Value Examples

Description

Retrieves metadata about a dataset. The result contains eg. information about variables and their values used when extracting data.

Usage

1
StatBank.GetData(TableId, lang = "DA", variables = NULL)

Arguments

TableId

character("TableId"); Table id to extract metadata from - get a list of TableId using StatBank.GetTabels

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

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/.

Value

Returns a Data Frame

Examples

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)

emillykkejensen/DKstatbankR documentation built on May 16, 2019, 5:08 a.m.