Skip to content

Instantly share code, notes, and snippets.

@revodavid
Created January 24, 2018 23:42
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 revodavid/e0ebfb78e78d84ed1d9a90e57b4b37d7 to your computer and use it in GitHub Desktop.
Save revodavid/e0ebfb78e78d84ed1d9a90e57b4b37d7 to your computer and use it in GitHub Desktop.
library(doParallel)
cl <- makeCluster(2)
registerDoParallel(cl)
bdayp <- foreach(n=1:100) %dopar% pbirthdaysim(n)
bdayp <- unlist(bdapy)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment