If your series is nearly regular, that is it is regularly spaced
except for a few missing points then as.ts(z) will convert it to a
regular ts series and as.zoo(as.ts(z)) does that and converts it back.
You may need to add back the class. For example see:
https://stat.ethz.ch/pipermail/r-help/2010-March/230700.html
Also see the three zoo vignettes and R News 4/1.
On Fri, Mar 5, 2010 at 10:32 AM, testuser wrote:
>
> I want to use the zoo package to convert an irregular time series to a
> regular one at every 15 min. interval. I would like to read in the csv file
> as a zoo object. When trying to do a seq(from,to,by), how can I specify the
> "from" to be the first time element in the zoo object and "to" to be the
> last element in the zoo object. Thanks for your help.
> --
> View this message in context:
> http://n4.nabble.com/zoo-Package-Question-tp1579735p1579735.html
> Sent from the R help mailing list archive at Nabble.com.
>
> __
> R-help@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.
>
__
R-help@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.