Description Usage Arguments Details Value Author(s) Examples
This function splits the integers from 1 to n
into
g
groups and returns the i
th group. All of this is
straightforward, but it's important to do it in a consistent way
for splitting up data/analyses.
1 2 3 |
num.groups |
number of groups to divvy the items into, defaults to
|
group.size |
size of each group, defaults to
|
n |
number of items to divvy up |
i |
group of items to return |
The g
th group may be smaller than the other groups
the indices of the i
th group of size g
in 1:n
Robert Corty
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.