Parallelize a function
Arguments
- x
A vector or list to apply over.
- fun
The function to be applied to each element.
- cores
The number of cores to use for parallelization with
foreach
, default is1
.- export_fun
The functions to export the function to workers.
- verbose
Logical value, default is
TRUE
, whether to print progress messages.