Description Usage Arguments Value Author(s)
split x into N batches each of a specific size.
1 | split_into_batches(x, N = NULL, batch.size = NULL)
|
x |
either a numeric vector, or a value specifying the length of the data |
N |
how many batches |
batch.size |
if specified, then make the batches |
A list with N entries, each entry being a vector of values from x.
If the batch.size
is set too high given the length of x and N, then empty
batches are not included or returned
Mark Cowley, 9 June 2005
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.