assign_labels.Rd
Assigns labels to data frame columns using Hmisc::label()
assign_labels(df)
df | a data frame |
---|
A dataframe with the new labels
Fetches labels from nsqipBileSpill::fetch_label()
.
In order to ascribe your own labels, you must update the nsqipBileSpill::fetch_label()
function.
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