SHARE
TWEET

Untitled

a guest Jun 16th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. library(foreach)
  2. library(doFuture)
  3.  
  4. registerDoFuture()
  5. plan(multicore, workers=12)
  6.  
  7. result <- foreach(i=1:N, .combine=c) %dopar% {
  8.         myfunction(mydata[[i]])
  9.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top