| check_unit_open_vector | R Documentation |
Check open-unit-interval vector
check_unit_open_vector(x, arg_name = deparse(substitute(x)))
x |
Numeric: Value to check. Must be a non-empty vector with all elements strictly in
|
arg_name |
Character: Argument name to use in error messages. |
Called for side effects. Throws an error if checks fail.
EDG
check_unit_open_vector(c(0.2, 0.5, 0.9))
# Throw error:
try(check_unit_open_vector(c(0, 0.5)))
try(check_unit_open_vector(c(0.5, 1)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.