Checks the class and values of columns in data.
check_values( data, values = NULL, unique = TRUE, nulls = FALSE, data_name = substitute(data) )
| data | The data frame to check. |
|---|---|
| values | A named list specifying the columns and their associated classes and values. |
| unique | A string indicating if columns must only be defined in values. |
| nulls | A string indicating if values can be NULL. |
| data_name | A string of the name of data. |
Throws an informative error or returns an invisible copy of the data.