chunk | R Documentation |
x
into n
chunks of equal size.Split vector x
into n
chunks of equal size.
chunk(x, n)
x |
Input vector. |
n |
Desired output length. |
List of n
vectors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.