search for: resultdf2

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

Did you mean: resultdf
2010 Sep 09
0
Fast / dependable way to "stack together" data frames from a list
...f4) ## Here's the way we have done it. We understand this, ## we believe the result, it is easy to remember. It is ## also horribly slow for a long list. resultDF <- mylist[[1]] for (i in 2:4) resultDF <- rbind(resultDF, mylist[[i]]) ## It works better to just call rbind once, as in: resultDF2 <- rbind( mylist[[1]],mylist[[2]],mylist[[3]],mylist[[4]]) ## That is faster because it calls rbind only once. ## But who wants to do all of that typing? How tiresome. ## Thanks to Erik Iverson in r-help, I understand that resultDF3 <- do.call("rbind", mylist) ## is doing the E...