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)
A vector of k sizes of the subsets.
The size of the set.
The number of subsets.
Other subsetting functions: index_groups()
index_groups()
subset_sizes(n = 100, k = 6) subset_sizes(n = 2, k = 6)
Run the code above in your browser using DataLab