apply_label: Apply an Hmisc-brand label to a single variable in a...

Description Usage Arguments Value Examples

View source: R/trahelyk.R

Description

Apply an Hmisc-brand label to a single variable in a dataframe or tibble

Usage

1
apply_label(df, x, lbl)

Arguments

df

A data frame or tibble.

x

Unquoted name of the column to be labeled.

lbl

Quoted label.

Value

A data frame or tibble.

Examples

1
2
3
4
5
6
foo <- tibble(a = c(1,2,3),
              b = c(4, 5,6)) %>%
  apply_label(a, "A") %>%
  apply_label(b, "B")
  
label(foo)

trahelyk/trahelyk_pkg documentation built on June 14, 2021, 9:25 p.m.