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

assign_labels(df)

Arguments

df

a data frame

Value

A dataframe with the new labels

Details

Fetches labels from nsqipBileSpill::fetch_label().

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

Examples

df <- data.frame(age = c(25, 32, 47), height = c(72, 65, 70), weight = c(180, 210, 190)) df %>% assign_labels()
#> age height weight #> 1 25 72 180 #> 2 32 65 210 #> 3 47 70 190