mcreplicate | R Documentation |
Uses the parallel
library to distribute replicate
processing across cores.
mcreplicate(n, expr, refresh = 0.1, mc.cores=2 )
n |
Number of replications |
expr |
Code to replicate |
refresh |
Status update refresh interval |
mc.cores |
Number of cores to use |
This function uses mclapply
to distribute replications across cores. It then simplifies the result to an array.
Richard McElreath
mclapply
, replicate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.