Helper for factor (level) adjustment of spec
Details
The function checks if the modifications to the factor definitions
provided in fctrs
are valid:
The names of
fctrs
top level entries must be present in the data of the entry (checked by attached data or dictionary). Else: ignore with messageThe factor levels provided must contain all current/known levels. Else: ignore with warning.
New factor levels (not seen in data) can be introduced (with message)
if only levels are provided, labels are created via
purrr::set_names()