Description Usage Arguments Value Examples
Selects, using weighted sampling, a category from the table.
1 |
table |
A prop.table. |
A vector of unit size containing the selected randomly weighted category.
1 2 3 | data(mtcars)
table <- prop.table(table(mtcars$carb))
sample_weighted_category(table)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.