powered by
Determine the sizes of k subsets of a set with n elements in such a way that the sizes are as equal as possible.
subset_sizes(n, k)
The size of the set.
The number of subsets.
A vector of k sizes of the subsets.
Other subsetting functions: index_groups()
index_groups()
# NOT RUN { subset_sizes(n = 100, k = 6) subset_sizes(n = 2, k = 6) # }
Run the code above in your browser using DataLab