powered by
Pass in a data frame along with a named list of columns with their corresponding labels.
ru_labels(dsetin, varlabels = list(), style = c("base", "Hmisc"))
The incoming data frame with labels added.
Incoming data frame to have labels added to columns.
List of variables and their labels.
Type of method used to add labels.
Yongwei Wang, yongwei.x.wang@viivhealthcare.com Chris Rook, cr883296@gmail.com
library(repfun) df_with_labels <- ru_labels(mtcars,varlabels=list(mpg='Miles per gallon', cyl='Number of cylinders'))
Run the code above in your browser using DataLab