subset_sizes {fritools2} | R Documentation |
Determine Subset Sizes Close to Equality
Description
Determine the sizes of k subsets of a set with n elements in such a way that the sizes are as equal as possible.
Usage
subset_sizes(n, k)
Arguments
n |
The size of the set. |
k |
The number of subsets. |
Value
A vector of k sizes of the subsets.
See Also
Other subsetting functions:
index_groups()
Examples
subset_sizes(n = 100, k = 6)
subset_sizes(n = 2, k = 6)
[Package fritools2 version 4.1.0 Index]