assert_valid_variable {chevron} | R Documentation |
Check variables in a data frame are valid character or factor.
Description
Check variables in a data frame are valid character or factor.
Usage
assert_valid_variable(
df,
vars,
label = deparse(substitute(df)),
types = NULL,
...
)
Arguments
df |
( |
vars |
( |
label |
( |
types |
Named ( |
... |
further arguments for |
Value
invisible TRUE
or an error message if the criteria are not fulfilled.
[Package chevron version 0.2.6 Index]