[R] Merging zoo objects

Pete B Peter.Brecknock at bp.com
Fri Jan 7 19:01:20 CET 2011


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=TRUE)

# Second Effort
alldata
=merge(noquote(toString(paste("M",rep(1:nrow(counts1)),sep=""))),all=TRUE)

Any insights would be gratefully received.

Kind regards

Pete




-- 
View this message in context: http://r.789695.n4.nabble.com/Merging-zoo-objects-tp3184696p3184696.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list