powered by
splitIndicesByLength(x, lg, balance=FALSE) splitIndicesByNode(x)
splitIndicesByLength
x
lg
splitIndicesByNode splits x in N groups (where N is the number of compute nodes available).
splitIndicesByNode
x <- 1:100 splitIndicesByLength(x, 8) splitIndicesByLength(x, 8, balance=TRUE) splitIndicesByNode(x)
Run the code above in your browser using DataLab