Description Usage Arguments Value Author(s) Examples
This utility calculates sapply
using multi-core capability.
It is a simple wrapper on simplify2array
and parallel::mclapply
.
It is particularly convenient on Linux and Mac when parallelism saves significant amount of computing time.
1 | jubilee.mcsapply(x, FUN, ...)
|
x |
numeric |
FUN |
the function to be applied to each element of x |
... |
optional arguments to |
numeric
Stephen H. Lihn
1 2 | a <- seq(1,100)
jubilee.mcsapply(a, function(x) x^2) # use multi-core!
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.