splitIndicesByLength {oligoClasses} | R Documentation |
Tools to distribute objects across nodes or by length.
splitIndicesByLength(x, lg, balance=FALSE) splitIndicesByNode(x)
x |
object to be split |
lg |
length |
balance |
logical. Currently ignored |
splitIndicesByLength
splits x
in groups of length lg
.
splitIndicesByNode
splits x
in N groups (where N is the
number of compute nodes available).
List.
Benilton S Carvalho
split
x <- 1:100 splitIndicesByLength(x, 8) splitIndicesByLength(x, 8, balance=TRUE) splitIndicesByNode(x)