convert | R Documentation |
zoo
or ts
object
This function converts an object of class ts
or zoo
in a data.frame with a column
named time
retrieved from index(x)
. It is designed for those unfamiliar with time series
objects.
convert(x, year=NULL)
x |
An object of class |
year |
A vector of length one with year of observation. If provided, a column with time in POSIX format is also returned |
An object of class data.frame
is returned with a column doy
and optionally time
at the end of the table.
A dataframe
Gianluca Filippa <gian.filippa@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.