subset_sizes: Determine Subset Sizes Close to Equality

View source: R/subsets.R

subset_sizesR 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)

fritools documentation built on May 29, 2024, 10:03 a.m.