Learn R Programming

chickn (version 1.2.3)

big_parallelize: big_parallelize

Description

parallel call a function on file-backed matrix

Usage

big_parallelize(
  X,
  p.FUN,
  p.combine = NULL,
  ind = bigstatsr::cols_along(X),
  ncores = 4,
  ...
)

Arguments

X

is a file-backed data matrix

p.FUN

is a function to apply

p.combine

is a rule to combine the results from each core

ind

is a vector of column indeces on which the computations are performed

ncores

is a nuber of cores

...

are additional parameters

Value

The result of the parallel computations