split_work | R Documentation |
Define an index of work splits for parallel processing
split_work(length, cores)
length |
the length of an object to split (nrows, list length, etc) |
cores |
the number of cores available on your machine. Typically |
This function accepts an integar defining the length of you object to be split and will return a list of length equal to n_cores. This can be used to split up an object for use in parallel processing such as mclapply
a list of length equal to the value of cores
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.