Learn R Programming

oligo (version 1.36.1)

splitIndicesByLength: Tools to distribute objects across nodes or by length.

Description

Tools to distribute objects across nodes or by length.

Usage

splitIndicesByLength(x, lg, balance=FALSE)
splitIndicesByNode(x)

Arguments

x
object to be split
lg
length
balance
logical. Currently ignored

Value

  • List.

Details

splitIndicesByLength splits x in groups of length lg.

splitIndicesByNode splits x in N groups (where N is the number of compute nodes available).

See Also

split

Examples

Run this code
x <- 1:100
splitIndicesByLength(x, 8)
splitIndicesByLength(x, 8, balance=TRUE)
splitIndicesByNode(x)

Run the code above in your browser using DataLab