c.sapplyLB: Portable sapply function with load balancing

Description Usage Arguments Examples

Description

Wrapper function for parSapplyLB(), and Rhpc_sapplyLB(), and an implementaction of mcsapply with load balancing.

Usage

1
2
## S3 method for class 'sapplyLB'
c(X, FUN, ..., simplify = TRUE, USE.NAMES = TRUE)

Arguments

X

a vector (or atomic list) object, each element of which is individually passed to FUN

FUN

a function object, takes X as first argument

...

other arguments, possibly named, to be passed to every iteration of FUN

Examples

1
2
vec <- 1:10
c.lapply(vec, function(x) { x + 1})	# adds 1 to every element of vec, returns list

bamonroe/ctools documentation built on May 11, 2019, 6:19 p.m.