Learn R Programming

snplinkage (version 1.2.0)

parallel_apply: Separate a matrix in a list of matrices of length the number of cores and apply a function on the columns in parallel

Description

Separate a matrix in a list of matrices of length the number of cores and apply a function on the columns in parallel

Usage

parallel_apply(m_data, apply_fun, n_cores = 1, ...)

Value

apply_fun return

Arguments

m_data

Data matrix

apply_fun

Function to apply

n_cores

Number of cores

...

Passed to apply_fun