Skip to content

Combining data from different saved files with same object names into one data frame

3 messages · jim holtman, Christopher David Desjardins

#
Try this storing them to a list with the j,k,l,m as an index:

result <- list()
for(j in 1:2){
  for(k in 1:6){
    for(l in 1:2){
      for(m in 1:2){

fsumstatZINB=paste("/Users/chris/Dropbox/phd/analysis/Simulation/zinbmodels/summaries/zinbsumstat-",j,k,l,m,".rdata",
sep="")
        load(fsumstatZINB)
        print(zinbMeans[,1])
        result[[paste(j,k,l,m)]] <- zinbMeans
      }
    }
  }
}


On Mon, Feb 4, 2013 at 12:02 PM, Christopher Desjardins
<cddesjardins at gmail.com> wrote: