For variable types such as catcov, it can be convenient to define
levels. This function provides a straightforward means to do so,
consistent with tidy functions like <case_when>.
Several convenience functions are provided for common levels in <levelers>.
<numeric> Problem number to use. Uses the all problems if NULL
...
<list> of formulas or leveler functions, where the relevant variable is provided as the argument,
.missing
<character> Value to use for missing levels
.ordered
<character> Names of columns whose levels should be
treated as an ordered factor (see base::factor), even when supplied
as a plain formula list rather than via lvl_inord(). Columns leveled
with lvl_inord() are already ordered by default and do not need to
be listed here.
.handle_missing
<character> How to handle missing levels: "quiet", "warn", or "error"