partition | R Documentation |
Splits xs into partitions of length n, thanks to https://stackoverflow.com/questions/3318333/split-a-vector-into-chunks-in-r
partition(xs, n)
xs |
an atomic vector to partition |
n |
the partition size |
a list containing the partitions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.