[R] Generating a time series.

Gabor Grothendieck ggrothendieck at gmail.com
Fri Aug 29 21:35:18 CEST 2008

Its not clear what the setup is but in the zoo package:
- zoo and zooreg can create time series
- merge.zoo and cbind.zoo can merge time series
- as.ts.zoo can convert a series to ts filling in missing times
- as.zoo.ts can convert a ts series back to zoo
- coredata and time can pick out the data and time components
  of a zoo series

On Fri, Aug 29, 2008 at 3:11 PM,  <rkevinburton at charter.net> wrote:
> I have a bunch of lists that are essentially time-series with the unit of time being 'day'. So I naturally want to generate a time-series from 1:365. I was wondering if there is a nifty 'R' trick to turn a list with missing data (the list may contain values at 100, 230, and 360) into a time series with the missing data filled in (with zeros).
> Thank you.
> Kevin
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list