My series was regularly spaced, it simply contained missing values. I don't
see why the new values were added.

Besides, my previous email showed exactly how to convert a zoo object with
missing values into a ts object with missing values and a frequency other
than 1, so I'm not sure what you mean:

> z = zoo(x, order.by=t)
> t = as.ts(z)
> frequency(t)
[1] 1
> length(t)
[1] 92064
> tt = ts(t, frequency=24)
> frequency(tt)
[1] 24
> length(tt)
[1] 92064


On Wed, Jan 19, 2011 at 1:20 PM, Gabor Grothendieck <ggrothendi...@gmail.com
> wrote:

> On Wed, Jan 19, 2011 at 4:17 PM, Adam Oliner <oli...@gmail.com> wrote:
> > Gabor,
> >
> > If you follow those steps on a series with missing values, the resulting
> tt
> > will contain tons of new NAs. (See my original email and the call to "zrt
> =
>
> zoo and zooreg classes handle series which may not be regularly spaced
> whereas ts only handles regularly spaced series so the series
> necessarily must be filled with NAs if you convert it from an
> irregularly spaced one to a regularly spaced one.
>
>
> --
> Statistics & Software Consulting
> GKX Group, GKX Associates Inc.
> tel: 1-877-GKX-GROUP
> email: ggrothendieck at gmail.com
>



-- 
 - Adam J. Oliner

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to