assert_valid_variable | R Documentation |
Check variables in a data frame are valid character or factor.
assert_valid_variable(
df,
vars,
label = deparse(substitute(df)),
types = NULL,
...
)
df |
( |
vars |
( |
label |
( |
types |
Named ( |
... |
further arguments for |
invisible TRUE
or an error message if the criteria are not fulfilled.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.