c.lapplyLB: Portable lapply function with load balancing

Description Usage Arguments Examples

Description

Wrapper function for parLapplyLB(), mclapply(mc.preschedule = FALSE), and Rhpc_lapplyLB().

Usage

1
2
## S3 method for class 'lapplyLB'
c(X, FUN, ...)

Arguments

X

a 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.