Allows the user to succinctly create a new vector based off conditions of a single vector.
case_match(.x, ..., .default = NA, .ptype = NULL)
A vector
A sequence of two-sided formulas. The left hand side gives the old values, the right hand side gives the new value.
The default value if all conditions evaluate to FALSE
.
Optional ptype to specify the output type.