Re: [R] Merging zoo objects

2011-01-07 Thread Pete B
Thanks Gabor. Much appreciated (as always). -- View this message in context: http://r.789695.n4.nabble.com/Merging-zoo-objects-tp3184696p3186113.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https:/

Re: [R] Merging zoo objects

2011-01-07 Thread Gabor Grothendieck
On Fri, Jan 7, 2011 at 1:01 PM, Pete B wrote: > > Hi > > I have n zoo objects M1, M2, M3, ... , Mn that I want to merge where n is a > number calculated at run-time. > > I am struggling to find the correct syntax to do this > > Assuming n is calculated as 10 (for example), I have tried > > n = 10

[R] Merging zoo objects

2011-01-07 Thread Pete B
Hi I have n zoo objects M1, M2, M3, ... , Mn that I want to merge where n is a number calculated at run-time. I am struggling to find the correct syntax to do this Assuming n is calculated as 10 (for example), I have tried n = 10 # First Effort alldata= merge(paste("M",rep(1:n), sep=""),all=T