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 <[EMAIL PROTECTED]> 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@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.