zoo
or ts
objectThis 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)
A dataframe
An object of class ts
or zoo
A vector of length one with year of observation. If provided, a column with time in POSIX format is also returned
Gianluca Filippa <gian.filippa@gmail.com>
An object of class data.frame
is returned with a column doy
and optionally time
at the end of the table.