splitIndices {parallel} | R Documentation |
This divides up 1:nx
into ncl
lists of approximately
equal size, as a way to allocate tasks to nodes in a cluster.
It is mainly for internal use, but some package authors have found it useful.
splitIndices(nx, ncl)
nx |
Number of tasks. |
ncl |
Number of cluster nodes. |
A list of length ncl
, each element being an integer vector.
splitIndices(20, 3)