read_swissdata: Read data generated by the Swissdata project

Description Usage Arguments Details Examples

View source: R/read_swissdata.R

Description

Read data from swissdata compliant .csv files and turn them into a list of time series.

Usage

1
read_swissdata(path, key_columns, filter = NULL)

Arguments

path

character full path to dataset.

key_columns

character vector specifying all columns that should be part of the key.

filter

function A function that is applied to the raw data.data table after it is read. Useful for filtering out undesired data.

Details

The order of dimensions in key_columns determines their order in the key The resulting ts_key will be of the form <swissdata-set-name>.<instance of key_columns[1]>...

Examples

1
2
3
ds_location <- system.file("example_data/ch.seco.css.csv",package = "tstools")
tslist <- read_swissdata(ds_location,"idx_type")
tsplot(tslist[1])

tstools documentation built on May 2, 2019, 9:05 a.m.