search for: matrixdocall

Displaying 1 result from an estimated 1 matches for "matrixdocall".

2010 Sep 09
0
Fast / dependable way to "stack together" data frames from a list
...r Hadley Wickham followed up with "I think all you want here is rbind.fill:" resultDF6 <- rbind.fill(mylist) all.equal(resultDF, resultDF6) ## Gabor Grothendieck noted that if the elements in mylist were matrices, this would all work faster. mylist2 <- lapply(mylist, as.matrix) matrixDoCall <- do.call("rbind", mylist2) all.equal(as.data.frame(matrixDoCall), resultDF) ## Gabor also showed a better way than 'system.time' to find out how ## long this takes on average using the rbenchmark package. Awesome! #> library(rbenchmark) #> benchmark( #+ df = do.cal...