splitIntoChunks | R Documentation |
Internal soundgen function.
splitIntoChunks(x, n)
x |
numeric vector to split |
n |
number of chunks |
Takes a numeric vector x and splits it into n chunks. This is the fastest splitting algorithm from https://stackoverflow.com/questions/3318333/split-a-vector-into-chunks
Returns a list of length n
containing the chunks
# prepare chunks of iterator to run in parallel on several cores
chunks = soundgen:::splitIntoChunks(1:21, 4)
chunks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.