getData: getData

Description Usage Arguments Examples

View source: R/getData.R

Description

Get the actual data using the meta data object.

Usage

1
2
getData(table, ..., labelFactors = F, fillRemaining = F, startDate = NA,
  endDate = NA, splitLarge = F, giveRDates = F)

Arguments

table

This is a table object from the DSTget function, it contain metadata.

...

Give all variable selections as arguments. Forexample write Tid = c("2015M01", "2015M02") and ALDER = c(0,1,2,3)

labelFactors

A boolean - if true then the factor levels will be renamed to their full statbank text. A 'U' value in BEC3V will become 'Ugift'.

fillRemaining

A boolean - if true then all values, in variables that are not explicitly mentioned, will be selected (as opposed to none).

startDate

An R date - all periods before this will not be downloaded.

endDate

An R date - all periods after this will not be downloaded.

splitLarge

Allows you to download tablers larger than the default DST limit of 100.000 rows

giveRDates

Include the periods as R dates directly on the data - they are also available in the metadata table - so this simply saves you a join operation.

Examples

1
2
tab <- DSTget("BEV3C")
dat <- getData(tab, fillRemaining=T)

ogroendal/DSTget documentation built on June 7, 2020, 8:16 p.m.