[R-sig-Geo] HELP to cbind several data.frame with a LOOP

Zev Ross zev at zevross.com
Tue Apr 14 21:19:53 CEST 2009


Something like this might get you started. If you've got very big data, though,
looping wouldn't be the efficient way to go.

Tableanalysis_firenze_10<-data.frame(a=1:10, b=1:10)
Tableanalysis_firenze_20<-x
Tableanalysis_firenze_30<-x

mydata<-paste("Tableanalysis_firenze_", seq(10, 30, by=10), sep="")

alldata<-NULL
for(i in 1:length(mydata))
{
alldata<-rbind(alldata, eval(as.name(mydata[i])))
}


Zev



More information about the R-sig-Geo mailing list