library(magrittr)
data(mtcars)
mtcars_with_labels <- mtcars %>%
set_column_labels(mpg = "Gas",
cyl = "Cylinders",
hp = "Strength")
Hmisc::label(mtcars_with_labels$mpg)
Run the code above in your browser using DataLab