[R] Converting zoo dates to ts dates
Gabor Grothendieck
ggrothendieck at gmail.com
Mon Sep 17 16:42:25 CEST 2007
as.ts(z) will convert zoo object z to a ts object. The get.hist.quote
retclass= argument can be used to directly output a ts object.
On 9/17/07, Edna Bell <edna.bell01 at gmail.com> wrote:
> Hi R Gurus
>
> I'm using get.hist.quote to obtain monthly historical data.
>
> This results in a zoo series.
>
> I would like to convert the zoo series to a time series within a
> function. How do I get the starting date for the ts from the zoo
> series, please?
>
> Thanks,
> Edna Bell
>
> ______________________________________________
> 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