getTrendGADS {eatGADS}R Documentation

Get data for trend reports.

Description

Extracts variables from multiple eatGADS data bases. Data can then be extracted from the GADSdat object via extractData. For extracting meta data from a data base or a GADSdat object see extractMeta. To speed up the data loading, getGADS_fast is used per default.

Usage

getTrendGADS(
  filePaths,
  vSelect = NULL,
  years,
  fast = TRUE,
  tempPath = tempdir(),
  verbose = TRUE
)

Arguments

filePaths

Character vectors with paths to the eatGADS db files.

vSelect

Variables from all GADS to be selected (as character vector).

years

A numeric vector with identical length as filePaths.

fast

Should getGADS_fast be used for data loading instead of getGADS? Using the default is heavily recommended.

tempPath

The directory, in which both GADS will be temporarily stored. Using the default is heavily recommended.

verbose

Should the loading process be reported?

Details

This function extracts data from multiple GADS data bases. All data bases have to be created via createGADS. The data bases are joined via rbind() and a variable year is added, corresponding to the argument years. The GADSdat object can then further be used via extractData. See createDB and dbPull for further explanation of the querying and merging processes.

Value

Returns a GADSdat object.

Examples

# See getGADS vignette



[Package eatGADS version 1.1.0 Index]