Description Usage Arguments Value
random_group
randomly splits a vector of indices (defined by the
number of lines of a dataset) into subgroups.
1 | random_group(n, probs)
|
n |
Total number of indices to be splitted into smaller groups. |
probs |
A named vector of probabilities defining the names and proportions of indices defining each subgroup. |
A character vector of size n
in which each entry contains the
name of one of the subgroups defined in the probs
vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.