Description Usage Arguments Value Examples
Split a vector into a list
1 | split_list(x, n = NULL, max = NULL)
|
x |
A vector. |
n |
a integer. Number of vectors. |
max |
a integer. Maximum number of element in each vector. |
A named list.
1 2 3 4 5 | split_list(1:100, 2)
split_list(1:100, 11)
split_list(1:100, max = 11)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.