assert_positive_number {simIDM} | R Documentation |
Assertion for Positive Number
Description
Assertion for Positive Number
Usage
assert_positive_number(x, zero_ok = FALSE)
Arguments
x |
what to check. |
zero_ok |
( |
Value
Raises an error if x
is not a single positive (or non-negative) number.
Examples
assert_positive_number(3.2)
assert_positive_number(0, zero_ok = TRUE)
[Package simIDM version 0.1.0 Index]