assign_label: Assign a label to a column

Description Usage Arguments Details Value Examples

View source: R/label.R

Description

Assigns a label to a data frame column using Hmisc::label()

Usage

1

Arguments

df

a data frame

col

a column

Details

Fetches label from nsqipBileSpill::fetch_label().

In order to ascribe your own labels, you must update the nsqipBileSpill::fetch_label() function.

Value

A dataframe with the new labels

Examples

1
2
df <- data.frame(age = c(1,2,3))
df %>% assign_label(age)

dylanrussellmd/nsqipBileSpill documentation built on Dec. 20, 2021, 2:17 a.m.