Re: [R] how to assemble data frame of unknown number of columns in loop

2011-04-24 Thread Rolf Turner
On 24/04/11 16:44, Nevil Amos wrote: How do I assemble ad data fame, consisting of columns form other data frames identified in a loop? cbind is not working as the initial data fame has 0 columns and rows. > ModList<-dir("./MODEL_DISTS/") > ModList<-ModList[grep(pattern="3COLUMNS",ModList)]

[R] how to assemble data frame of unknown number of columns in loop

2011-04-23 Thread Nevil Amos
How do I assemble ad data fame, consisting of columns form other data frames identified in a loop? cbind is not working as the initial data fame has 0 columns and rows. > ModList<-dir("./MODEL_DISTS/") > ModList<-ModList[grep(pattern="3COLUMNS",ModList)] > ALL_MODELS<-data.frame() > for (i in