| Rhpc_splitList | R Documentation |
Divides a list or vector into approximately equal-sized chunks for distribution to workers.
Rhpc_splitList(var, num)
var |
vector or list to be split |
num |
number of chunks to create (typically equal to the number of workers) |
This function divides var into num roughly equal-sized chunks.
It is useful for manually distributing work to workers when fine-grained control is needed.
This is primarily an internal utility; the apply-style functions handle splitting automatically.
A list of length num, each element containing a portion of var.
Rhpc_lapply, Rhpc_numberOfWorker
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.