assign_labels: Assign labels to a data frame

Description Usage Arguments Details Value Examples

View source: R/label.R

Description

Assigns labels to data frame columns using Hmisc::label()

Usage

1

Arguments

df

a data frame

Details

Fetches labels 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(25, 32, 47), height = c(72, 65, 70), weight = c(180, 210, 190))
df %>% assign_labels()

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