Re: [R] memory growth with rbind and lapply

2012-05-13 Thread Duncan Murdoch
On 12-05-12 10:06 PM, Jack Tanner wrote: 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) {

[R] memory growth with rbind and lapply

2012-05-12 Thread Jack Tanner
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)