View source: R/random_percents.R
random_percents | R Documentation |
Useful to split a data value into random parts that will sum back to the total.
random_percents(.bin = NULL, .seed = NULL)
.bin |
numeric; the number of bins to generate. |
.seed |
numeric; the seed for randomly generating numbers. |
# With default seed value (1) random_percents(.bin = 2) # With specific seed value (45) random_percents(.bin = 2, .seed = 45) # With specific seed value (45) and more bins (9) random_percents(.bin = 9, .seed = 45)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.