Description Usage Arguments Value
View source: R/sample_partitions.R
Generate Random, Non-Overlapping Partition of Indices
1 | sample_partitions(n, fraction = NULL, size = NULL, warn = TRUE)
|
n |
Number of elements to partition. |
fraction |
A numeric in (0,1] specifying the size of each set
relative to |
size |
An integer in {1, 2, ..., n} specifying the size of each
set. If |
warn |
If |
A list of random non-overlapping (disjoint) sets where each element holds indices in {1, 2, ..., n} and where the union of all sets is {1, 2, ..., n}.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.