is_probability_value | R Documentation |
Check if the passed entity is a single probability value, that is, a floating point value in the interval [0.0, 1.0].
is_probability_value(value, allow_null = FALSE)
value |
the value to check |
allow_null |
if true, accept a value that is NULL. |
## Not run:
# For assertion
assertthat::assert_that(qscheck::is_probability_value(value))
# For check
if (qscheck::is_probability_value(value)) {}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.