[R-SIG-Finance] write.xts() and read.xts()

Gabor Grothendieck ggrothendieck at gmail.com
Fri Sep 25 16:54:04 CEST 2009


Try:

x <- as.xts(read.zoo(...))
write.zoo(as.zoo(x), ...)

On Fri, Sep 25, 2009 at 10:49 AM, Wind <windspeedo99 at gmail.com> wrote:
> There are write.zoo() and read.zoo() in the zoo package.   But there are no
> write.xts() or read.xts() in the xts package.Since xts is so powerful
> manipulating historic prices, I wonder how do you save those xts.   Write
> your own function like write.zoo for xts?   Or just use write.zoo and
> read.zoo and convert to xts again?  It seems that the attributes of xts
>  could not be maintained in the zoo-like way.
> Thanks.
>
> Wind
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
>



More information about the R-SIG-Finance mailing list