Use a yspec object to convert a vector of column names to the short
name with the unit optionally appended.
Arguments
- col
A character vector of names in
spec.- spec
A
yspecobject.- ...
Passed to
ys_get_short()(whenunitisFALSE) orys_get_short_unit()(whenunitisTRUE); specifically note thattitle_caseandshort_maxcan be passed along.- unit
Logical indicating if the unit should be appended to the short name.
