ezMclapply | R Documentation |
lapply()
This function is a modified version of mclapply()
of the parallel package and allows a parallel usage of lapply.
ezMclapply(
x,
FUN,
...,
mc.preschedule = TRUE,
mc.set.seed = TRUE,
mc.silent = FALSE,
mc.cores = min(length(x), ezThreads())
)
x |
a list to apply the function to. |
FUN |
the function to apply to each list element. |
... |
additional arguments to be passed to |
mc.preschedule |
a logical passed to |
mc.set.seed |
a logical passed to |
mc.silent |
a logical passed to |
mc.cores |
an integer passed to |
Returns a list of the same length as x
with FUN
applied to its elements.
Rehrauer, Hubert
Schmid, Peter
mclapply
l1 = list(a=1:3, b=c(2,5), c=4:8)
ezMclapply(l1,sum)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.