Learn R Programming

climatehealth (version 1.0.0)

label_with_unit: Append the units to a column label.

Description

Append the units to a column label.

Usage

label_with_unit(col, units)

Value

The new column label containing units (if col in units).

Arguments

col

Character. The column name.

units

Named Character vector. A vector of units (str) that map to columns.