subset_sizes | R Documentation |
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)
n |
The size of the set. |
k |
The number of subsets. |
A vector of k sizes of the subsets.
Other subsetting functions:
index_groups()
subset_sizes(n = 100, k = 6)
subset_sizes(n = 2, k = 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.