simplify_likelihood_levels | R Documentation |
Collapse levels on a likelihood factor into smaller categories. For example "Likely improving" and "Very likely improving" are collapsed into a single level "Likely or very likely improving".
simplify_likelihood_levels(x)
x |
The vector with the likelihoods. Must be a factor or a character string |
A factor with simple categories
Other likelihood functions: get_likelihood_category
,
order_likelihood_levels
p <- seq(0, 1, length.out = 11)
get_likelihood_category(p) %>%
order_likelihood_levels() %>%
simplify_likelihood_levels()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.