ssv_mclapply: ssv_mclapply

View source: R/misc_helpers.R

ssv_mclapplyR Documentation

ssv_mclapply

Description

ssv_mclapply

Usage

ssv_mclapply(X, FUN, mc.cores = getOption("mc.cores", 1), ...)

Arguments

X

For pbsapply and pblapply, a vector (atomic or list) or an expressions vector (other objects including classed objects will be coerced by as.list.) For pbapply an array, including a matrix. For pbtapply an R object for which a split method exists. Typically vector-like, allowing subsetting with "[".

FUN

The function to be applied to each element of X: see apply, sapply, and lapply. In the case of functions like +, '%*%', etc., the function name must be backquoted or quoted. If FUN is NULL, pbtapply returns a vector which can be used to subscript the multi-way array pbtapply normally produces.

mc.cores

Number of cores to use for pbmclapply. Defaults to option mc.cores.

...

passed to pbapply::pblapply or pbmcapply::pbmclapply

Value

result of either pblapply or pbmclapply


jrboyd/seqsetvis documentation built on Dec. 10, 2024, 11:23 a.m.