parallelize_fun: Parallelize a function

View source: R/utils.R

parallelize_funR Documentation

Parallelize a function

Description

Parallelize a function

Usage

parallelize_fun(x, fun, cores = 1, export_fun = NULL, verbose = TRUE)

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 is 1.

export_fun

The functions to export the function to workers.

verbose

Logical value, default is TRUE, whether to print progress messages.

Value

A list of computed results


inferCSN documentation built on Sept. 11, 2024, 9:32 p.m.