Closed hectormz closed 4 years ago
I would expect the answer is yes. However, before I can give a definitive answer I would like to see a reproducible example of what you are looking for. My only experience with using variable labels in a data.frame relies on either the Hmisc or setting a attribute "label" for each element of the data frame explicitly. If you are using some other set up for variable labels I would like to know.
Hi I believe my inspiration for this enhancement came from this usage explained for sjPlot: https://dmyee.files.wordpress.com/2016/03/table_workshop.pdf
@hectormz : I have added to the qsummary
call to use the label
attribute, if it exists, on the data frame for building summary tables. An example as been added to the vignette as well. The update has been pushed to CRAN for qwraps2 version 0.4.2.
@dewittpe awesome! Thank you for the update!
Is it possible to create tables using the dataframe's variable labels instead of the variable names? This would be useful when using qsummary() to generate automatic/default tables without manually setting variable display names.