[R] Semi-Regular Time Series with Missing Values
Gabor Grothendieck
ggrothendieck at gmail.com
Wed Jan 19 21:00:44 CET 2011
On Wed, Jan 19, 2011 at 1:10 PM, Adam Oliner <oliner at gmail.com> wrote:
> I don't seem to have that method:
>
>> zts = as.ts.zoo(z)
> Error: could not find function "as.ts.zoo"
>
> I'm finding forum posts from people trying to use stl directly with zoo[reg]
> functions (despite the documentation specifying ts) but discovering that stl
> gives errors with NA entries. I encountered similar errors.
>
> Can anyone on this list confirm whether stl works with NA values? If so,
> could someone please point me to a working example?
>
>
Normally S3 methods such as as.ts.zoo are not exported unless there is
particular reason to access them directly. Rather one accesses them
via their generic which dispatches the appropriate method based on the
class of its first argument.
That is if z is a zoo object then as.ts(z) dispatches as.ts.zoo.
If you really want to see it you can do this zoo:::as.ts.zoo
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
More information about the R-help
mailing list