randomise_changes_in_fct_lvls | R Documentation |
randomise_changes_in_fct_lvls() is a Randomise function that randomly samples from data. Specifically, this function implements an algorithm to randomise changes in factor vector levels. The function is called for its side effects and does not return a value.
randomise_changes_in_fct_lvls(vector_fct, prob_unchanged_dbl)
vector_fct |
Vector (a factor vector) |
prob_unchanged_dbl |
Probability unchanged (a double vector) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.