pickRandom | R Documentation |
Select random elements based on a criteria
pickRandom(
labels,
allValues,
tolerance,
allowSelf = TRUE,
invalids = c(),
n = 500
)
labels |
Character vector. Labels to randomize |
allValues |
Named numeric vector. Randomization candidates |
tolerance |
Percentage tolerance for randomization |
allowSelf |
Logical, is self a viable candidate for randomization |
invalids |
Specific cases to exclude from randomization |
n |
How many times randomization should happen |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.