Checks against the given list, errors if a variable is missing and returns only the specified variables.
1 | checkVars(.data, expected)
|
.data |
a data_frame object |
expected |
character vector of expected variables |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.