Use a yspec
object to convert a vector of column names to the short
name with the unit optionally appended.
ys_recode(col, spec, ..., unit = FALSE)
A character vector of names in spec
.
A yspec
object.
Passed to ys_get_short()
(when unit
is FALSE
) or
ys_get_short_unit()
(when unit
is TRUE
); specifically note that
title_case
and short_max
can be passed along.
Logical indicating if the unit should be appended to the short name.