Simple wrapper around lapply and parallel::clusterApplyLB to abstract away
the logic of deciding which one to use.
Arguments
- cl
(
cluster object)
Cluster created byparallel::makeCluster()orNULL- fun
(
functions)
Function to be run- x
(
object)
Object to be looped over- ...
Extra arguments passed to
fun
