Check variables exist in data
Usage
check_variables_exist(data, variables)
Arguments
- data
a dataframe to check
- variables
a character vector of variable names which should be in
the data
Value
TRUE (invisibly) if all variables are present otherwise it will
throw an informative error message