powered by
Internal soundgen function.
splitIntoChunks(x, n)
Returns a list of length n containing the chunks
n
numeric vector to split
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
# prepare chunks of iterator to run in parallel on several cores chunks = soundgen:::splitIntoChunks(1:21, 4) chunks
Run the code above in your browser using DataLab