Check if the input variable is a non-negative number
Usage
check_if_non_negative(
  x,
  allow_na = TRUE,
  arg = rlang::caller_arg(x),
  error_call = rlang::caller_env()
)Arguments
- x
- Input variable to check if it is non-negative number 
- allow_na
- Input boolean to determine if - NAor- NaNis allowed. Default:- TRUE
- 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. 
- error_call
- The execution environment of a currently running function, e.g. - caller_env(). The function will be mentioned in error messages as the source of the error. See the- callargument of- abort()for more information.
