Skip to content
Back to formatted view

Raw Message

Message-ID: <8cca69990910091049k2a903c94w48d632bf54bae18c@mail.gmail.com>
Date: 2009-10-09T17:49:35Z
From: Joshua Ulrich
Subject: recommended zoo merge for multiple objects
In-Reply-To: <4ACF762C.40206@bellsouth.net>

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.
>