| check_optional_nonneg_double_vector | R Documentation |
Check optional non-negative double vector
check_optional_nonneg_double_vector(x, arg_name = deparse(substitute(x)))
x |
Optional Numeric: Value to check. Must be |
arg_name |
Character: Argument name to use in error messages. |
Called for side effects. Throws an error if checks fail.
EDG
check_optional_nonneg_double_vector(NULL)
check_optional_nonneg_double_vector(c(0, 1, 5))
# Throw error:
try(check_optional_nonneg_double_vector(c(-1, 0)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.