This version of my code makes the R process consume unreasonable amounts of RAM:

  datf <- rbind(lapply(mylist, function(item) {
      with(item, data.frame(col1, col2, col3))
    }))

This version works fine:

  datf <- lapply(mylist, function(item) {
      with(item, data.frame(col1, col2, col3))
    })
  datf <- do.call(rbind, datf)

Is this to be expected?

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to