Learn R Programming

deepSNV (version 1.18.3)

mcChunk: Little helper function to split the count objects into a smaller digestible chunks and run function FUN on each subset

Description

Little helper function to split the count objects into a smaller digestible chunks and run function FUN on each subset

Usage

mcChunk(FUN, X, split = 250, mc.cores = 1, ...)

Arguments

FUN
The function to call on each chunk
X
The object to be subsetted using [,i,]
split
The size of each chunk
mc.cores
The number of cores to use
...
Additional arguments passed to FUN

Value

The value of FUN