| check_range | R Documentation |
Validates that a numeric value falls within the specified range
check_range(x, min = NULL, max = NULL, inclusive = TRUE, arg_name = "value")
x |
Numeric value to check |
min |
Minimum allowed value (optional) |
max |
Maximum allowed value (optional) |
inclusive |
Whether bounds are inclusive (default: TRUE) |
arg_name |
Name of the argument for error messages |
Invisible TRUE if valid, throws error otherwise
Other validate-utils:
check_directory(),
check_file(),
check_input(),
check_packages()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.