check_level_availability.Rd
Check that required levels of a variable are available in data
check_level_availability(
data,
data_name,
expected_levels_list,
throw_error = TRUE
)
A tibble.
Character, holding name of dataset.
List holding variable names along with their expected levels. Variables must be present in data.
Boolean indicating if to throw error. If FALSE warning is signaled instead.
Returns data
invisibly.