Parallelized foreach
1 2 3 4 5 6 | pforeach(..., .c, .combine = c, .parallel = TRUE,
.debug = !.parallel, .cores, .seed = NULL, .init, .final = NULL,
.inorder = TRUE, .multicombine = FALSE, .maxcombine = if
(.multicombine) 100 else 2, .errorhandling = c("pass", "stop",
"remove"), .packages = NULL, .export = NULL, .noexport = NULL,
.verbose = FALSE)
|
... |
input for foreach. |
.c |
the relief of .combine parameter. Additionally .c=list means list combine that is deafault on foreach. |
.combine |
function that is used to process the tasks results as they generated. |
.parallel |
if TRUE, execute parallel processing. |
.debug |
if TRUE, execute sequential processing(not parallel). |
.cores |
number of cores for paralell processing. |
.seed |
random number seed. |
.packages |
character vector of packages that the tasks depend on. |
.export |
character vector of variables to export. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.