assert_positive_number | R Documentation |
Assertion for Positive Number
assert_positive_number(x, zero_ok = FALSE)
x |
what to check. |
zero_ok |
( |
Raises an error if x
is not a single positive (or non-negative) number.
assert_positive_number(3.2)
assert_positive_number(0, zero_ok = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.