Convert snake_case-like column names to title-style labels, optionally
preserving selected acronyms in uppercase. Title casing is minor-word aware
(via snakecase::to_title_case()), so short connecting words such as "of",
"to", "per", and "vs" stay lowercase (e.g. new_to_market becomes
"New to Market").
Usage
rename_cols_for_display(data, all_caps = character())Examples
data.frame(volume_py = 1, abc_units = 2) |>
rename_cols_for_display(all_caps = c("PY", "ABC"))
#> Volume PY ABC Units
#> 1 1 2