Ordered Factor case_when()
fct_case_when.Rd
Can replace case_when()
syntax and outputs an ordered factor in the same order as the cases, useful for meaningful ordering in plots and tables. This is because for case_when()
the arguments are evaluated in order, so you must proceed from the most specific to the most general. Tables and plots will therefor be ordered by the evaluation order.