Description Usage Arguments Value Examples
Splits an object into chunk sizes and puts them into a list
1 | split_chunk(x, chunk.size, type = c("sort", "equal", "rand"))
|
x |
The object |
chunk.size |
The number of elements |
type |
How should the elements be ordered? |
A list
1 2 3 4 5 | libraray(tpfuns)
split_chunk(1:10, 4, "sort")
split_chunk(1:10, 4, "equal")
split_chunk(1:10, 15, "rand")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.