Questions tagged [mclapply]

mclapply is a parallelized version of lapply, it returns a list of the same length as X, each element of which is the result of applying FUN to the corresponding element of X.

mclapply is a parallelized version of lapply. It returns a list of the same length as X, each element of which is the result of applying FUN to the corresponding element of X.

136 questions
0
votes
1 answer

Parallelization: package "parallel" instead of "mclapply"

I am trying to convert this code to the one that can be executed on Windows: numCores <- detectCores() results <- mclapply(seq(1, 500), function(file, fID){ myData <- fread(file.path(dirPath, fID, paste0(file, ".csv"))) return(cbind(myData,…
Klausos Klausos
  • 15,308
  • 51
  • 135
  • 217
1 2 3
9
10