check_if_positive {pretestcad} | R Documentation |
Check If Positive
Description
Check if the input variable is a positive number
Usage
check_if_positive(
x,
allow_na = TRUE,
arg = rlang::caller_arg(x),
call = rlang::caller_env()
)
Arguments
x |
Input variable to check if it is positive number |
allow_na |
Input boolean to determine if |
arg |
An argument name as a string. This argument will be mentioned in error messages as the input that is at the origin of a problem. |
call |
The execution environment of a currently
running function, e.g. |
Value
The variable itself or an error message if variable is not positive
See Also
[Package pretestcad version 1.0.2 Index]