validate | R Documentation |
This function can be used to validate the input to functions. This function is not exported.
validate(
x,
name = NULL,
check_class = NULL,
check_mode = NULL,
check_integer = FALSE,
check_NA = TRUE,
check_infinite = TRUE,
check_length = NULL,
check_dim = NULL,
check_range = NULL,
check_cols = NULL
)
x |
Function input. |
name |
Character. Name of variable to validate; if |
check_class |
Character. Name of class to expect. |
check_mode |
Character. Name of mode to expect. |
check_integer |
Logical. If |
check_NA |
Logical. If |
check_infinite |
Logical. If |
check_length |
Integer. Length of the object to expect. |
check_dim |
Numeric. Vector of object dimensions to expect. |
check_range |
Numeric. Vector of length 2 defining the expected range of the object. |
check_cols |
Character. Vector of columns that are intended to be in a |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.