| makeChunks {future.apply} | R Documentation |
This is an internal function.
makeChunks(nbrOfElements, nbrOfWorkers, future.scheduling = 1, future.chunk.size = NULL)
nbrOfElements |
(integer) Total number of elements to iterate over. |
future.scheduling |
(numeric) A strictly positive scalar.
Only used if argument |
future.chunk.size |
(numeric) The maximum number of elements per
chunk, or |
nbrOfWorker |
(integer) Number of workers available. |
A list of chunks, where each chunk is an integer vector of
unique indices [1, nbrOfElements]. The union of all chunks
holds nbrOfElements elements and equals 1:nbrOfElements.
If nbrOfElements == 0, then an empty list is returned.