Verifies correct class and, optionally, verifies existence in a data frame
input_param_checker(
x,
check_class = NULL,
check_names = NULL,
null_ok = T,
na_ok = NULL,
exclusions = NULL,
max_length = NULL
)
Single object name, character, or vector of characters
Vector of correct classes in character format
Default: NULL
. Optional data frame to check if
x
exists in the data frame.
Default: T
. Allow x
to be NULL
. If
x
is NULL
, bypass checking.
Default: NULL
. Allow x
to be NA
. If
na_ok
is NULL
, no NA
check will occur.
Default: NULL
. Optional values that are excluded
from checking in check_names
(if it is not NULL
).
Default: NULL
. Optional maximum length of x
.
If NULL
, no max length check will occur.
Stop error, if an error is found. Else nothing.