1 2 3 4 5 |
x |
The vector or list to be chunked. |
n_chunks |
The number of chunks desired. |
max_chunk_size |
The maximum desired length of any chunk. |
method |
The algorithm to use for chunking.
|
n |
The number of integers to chunk (i.e. chunk the sequence |
Exactly one of n_chunks
and max_chunk_size
should be NULL
(to specify both as non-NULL
is an error).
For chunk
, a list with x
chunked across the list entries.
For chunk_int
, a list with the values 1:n
chunked across the list entries.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.