parallel_apply {snplinkage}R Documentation

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, ...)

Arguments

m_data

Data matrix

apply_fun

Function to apply

n_cores

Number of cores

...

Passed to apply_fun

Value

apply_fun return


[Package snplinkage version 1.0.0 Index]