[R-SIG-Finance] recommended zoo merge for multiple objects

Joshua Ulrich josh.m.ulrich at gmail.com
Fri Oct 9 19:49:35 CEST 2009


On Fri, Oct 9, 2009 at 12:43 PM, zubin <binabina at bellsouth.net> wrote:
> Hello, i have about 20 objects, each object is a zoo object, a ticker
> symbol.
>
> I am using merge.zoo to merge 2 objects successfully and using return
> class to create a data frame.  However it looks like merge.zoo can only
> handle 2 objects.  What's the recommended approach to merge multiple zoo
> objects by the time index into a data frame?
>
How did you conclude merge.zoo can only handle 2 objects?  Read ?merge.zoo...

Arguments:

     ...: two or more objects, usually of class '"zoo"'.

Best,
Josh
--
http://www.fosstrading.com


> example of 2 objects:
>
> df <- merge.zoo(XLF,SPY,all=TRUE, retclass="data.frame")
> where XLF and SPY are zoo objects.
>
>
>
>
>        [[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