to_zoo: Build zoo object from data frame.

Description Usage Arguments

View source: R/to_zoo.R

Description

The function builds a zoo object from given data frame. The timestamp argument provides a column of the data frame which is used as index for the zoo object. The value argument gives series to be saved in the zoo object. If several columns are listed in value argument the multivariate zoo object will be built. Information from other columns is ignored. To use this function the 'zoo' package should be installed. To install the 'zoo' package type: install.packages("zoo").

Usage

1
to_zoo(dfr, timestamp = "Timestamp", value = "Value")

Arguments

dfr

The data frame with columns for time stamps and for values.

timestamp

Name or number of a column with time stamps. By default, timestamp = "Timestamp".

value

Vector of names or numbers of columns with series values. By default, value = "Value".


atsd documentation built on May 2, 2019, 4:06 p.m.