n_split | R Documentation |
If n is greater than the size of the vector, result will have the size of the vector with one item per element.
n_split(vec, n)
vec |
vector to split |
n |
integer number of parts |
list of size n
n_split(1:10, 2) n_split(1:10, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.