powered by
Create starting and stopping indices for subsets defined by subset_sizes.
subset_sizes
index_groups(n, k)
The size of the set.
The number of subsets.
A matrix with starting index, size, and stopping index for each subset.
Other subsetting functions: subset_sizes()
subset_sizes()
# NOT RUN { index_groups(n = 100, k = 6) index_groups(n = 2, k = 6) # }
Run the code above in your browser using DataLab