drop_levels: Check for empty factor levels
Description
CHECKS if there are empty factor levels in any of the variables used in the
model.
Usage
drop_levels(data, allvars, warn = TRUE, mess = NULL)
Value
the data.frame (unchanged)
Arguments
- data
a data.frame
- allvars
a character vector (of all variable names used in the model)
- warn
logical, if TRUE warnings are printed