prob_label | R Documentation |
Format numeric probabilities as text labels
prob_label(
p,
accuracy = 0.01,
digits = NULL,
max_digits = NULL,
remove_leading_zero = TRUE,
round_zero_one = TRUE
)
p |
numeric vector of probabilities |
accuracy |
accuracy of rounding |
digits |
Optional. Number of digits to round. Overrides accuracy parameter |
max_digits |
Optional. Maximum zeros or nines before rounding to 0 or 1 |
remove_leading_zero |
Removes leading zero from probability |
round_zero_one |
Apply rounding to 0 and 1 |
character vector
prob_label(seq(0,1, 0.1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.