index_groups {fritools} | R Documentation |
Create starting and stopping indices for subsets defined by
subset_sizes
.
index_groups(n, k)
n |
The size of the set. |
k |
The number of subsets. |
A matrix with starting index, size, and stopping index for each subset.
Other subsetting functions:
subset_sizes()
index_groups(n = 100, k = 6)
index_groups(n = 2, k = 6)