Description Usage Arguments Value
Split a vector into groups
1 | .splitIndex(index, nGroups, randomize = FALSE)
|
index |
the vector of index values to be split into groups |
nGroups |
number of groups to be generated |
randomize |
should the groups contain a random or ordered sampling from the index vector |
returns a list containing 'groups' and 'groupIndex' both of which are lists of length nGroups
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.