divide_cores: Divide cores

Description Usage Arguments Value Examples

View source: R/scMeth_functions.R

Description

Utility function to help parallelize jobs in R with less overhead. Likely wouldn't ever be used by the user.

Usage

1
divide_cores(total, ncores = cores_to_use)

Arguments

total

Total number of jobs to parallelize

ncores

CPUs to parallelize over (must be >1)

Value

Returns a data.frame with two columns (from and to) and rows equal to the number of cores

Examples

1
divide_cores(total = 100, ncores = 2)

hui-tony-zk/PDclust documentation built on May 16, 2019, 7:12 p.m.