.rangeCheck | R Documentation |
This function performs very basic range checks for numeric variables and throws an error if the range is violated. A custom hint may be added to the message.
.rangeCheck(variable, range, allowedEqual, hint = "")
variable |
The (named) variable to be checked. |
range |
A vector of length 2 giving the minimum and maximum of the allowed range. |
allowedEqual |
Logical. Are the borders of range valid values? |
hint |
Additional message that may be printed after the error. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.