parallel_apply: Separate a matrix in a list of matrices of length the number...

View source: R/associations.R

parallel_applyR 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


snplinkage documentation built on May 4, 2023, 9:09 a.m.