add_colname_unit: add_colname_unit Add units to target colnames usually right...

View source: R/fct_helpers.R

add_colname_unitR Documentation

add_colname_unit Add units to target colnames usually right before display uses (datatable, download, etc.)

Description

add_colname_unit Add units to target colnames usually right before display uses (datatable, download, etc.)

Usage

add_colname_unit(data, colnames, unit)

Arguments

data

the input data containing the colnames on which to append unit.

colnames

the colnames, as string or with tidyselect syntax, on which to append units

unit

the unit to append to 'colnames' wrapped in brackets

Value

dataframe with renamed columns (units added)


vdes2020/eneRgyVD documentation built on July 3, 2025, 7:36 p.m.