Description Usage Arguments Value Raises
View source: R/sampling_simulations.R
Validates that a probability is between 0 and 1 inclusively.
1 | validate_probability(p, p_str)
|
p |
The value to validate. |
p_str |
What to call the probability in error messages. |
The probability p if the probability if valid.
ValueError if the probability is invalid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.