Learn R Programming

chickn (version 1.2.3)

split_foreach: split_foreach

Description

implements block foreach loop

Usage

split_foreach(FUN, ind, ..., .combine = NULL, ncores = 4, nb_split = ncores)

Arguments

FUN

is a function that is executed in the loop

ind

is a index vector

...

are parameters of the function FUN

.combine

is a rule to combine the result

ncores

is a nuber of cores

nb_split

is a nuber of splits

Value

The result of the FUN function