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")
.
1 |
dfr |
The data frame with columns for time stamps and for values. |
timestamp |
Name or number of a column with time stamps. By default, |
value |
Vector of names or numbers of columns with series values.
By default, |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.