Description Usage Arguments Value Examples
View source: R/check_vars_exist.R
given a list of variables and a data set, checks if those variables exist and throws an error stating 'variable x not found' for whichever ones don't. I got fed up with opaque error messages caused by mistyped variable names. If you are nesting this inside another function and using tidy style remember to unquote (!!) the variables that you pass in. The function returns nothing if the variables exist.
1 |
df |
a tibble |
... |
list of variables to confirm existence of. |
Silent or Error
1 | check_vars_exist(df = airquality, Ozone, Month)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.