Guest User

Untitled

a guest
Feb 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. TabR1
  2.  
  3. vecsandre
  4.  
  5. copy <- function (m) {
  6. for (i in 1:m) {
  7. TEST[[i]] <- TabR1[TabR1$CdStationMesureEauxSurface == vecsandre[i],]
  8. }
  9. }
  10.  
  11. TEST=list()
  12.  
  13. library(doParallel)
  14. no_cores <- detectCores() - 1
  15. grappe <- makeCluster(no_cores)
  16. registerDoParallel(no_cores)
  17. system.time(foreach(z=1:10) %dopar% copy(z))
  18. stopCluster(grappe)
Add Comment
Please, Sign In to add comment