Skip to content

Instantly share code, notes, and snippets.

@wangyuchen
Created February 15, 2013 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wangyuchen/4962177 to your computer and use it in GitHub Desktop.
Save wangyuchen/4962177 to your computer and use it in GitHub Desktop.
# right way to collect data frame output of mclapply
do.call(rbind, mclapply(...))
# since do.call treat the second arg as a list, it will correctly passed it to rbind
# this way doesn't work
a <- mclappy(...)
rbind(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment