[R] Merging lot of zoo objects

2009-07-21 Thread RON70
Hi, I have 100 price data series like price1, price2, price3, . All are zoo objects. Now I want to merge all them together. Obviously I can do this using merge(price1, price2, price3, ). However as I have lot of price series (almost 1000) above systax is very tiresome. Is

Re: [R] Merging lot of zoo objects

2009-07-21 Thread Michael Knudsen
On Tue, Jul 21, 2009 at 9:07 AM, RON70ron_michae...@yahoo.com wrote: I have 100 price data series like price1, price2, price3, . All are zoo objects. Now I want to merge all them together. Obviously I can do this using merge(price1, price2, price3, ). However as I have lot

Re: [R] Merging lot of zoo objects

2009-07-21 Thread Achim Zeileis
On Tue, 21 Jul 2009, Michael Knudsen wrote: On Tue, Jul 21, 2009 at 9:07 AM, RON70ron_michae...@yahoo.com wrote: I have 100 price data series like price1, price2, price3, . All are zoo objects. Now I want to merge all them together. Obviously I can do this using merge(price1,

Re: [R] Merging lot of zoo objects

2009-07-21 Thread Gabor Grothendieck
1. If the series are zoo series all starting with z, say, in the current workspace then: L - sapply(ls(pattern = ^z), get, simplify = FALSE) znew - do.call(merge, L) 2. If your data originally comes from a single file with a column that specifies which series that row pertains to then you can