Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCreate Tables with Variable Labels #74
Comments
|
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: |
Prior to this change only the variable name would be used to label the row groups for `qsummary` and `summary_table` This change looks to see if the attribute "label" has been set for a variable in the data frame and uses that instead of the variable name. If the attribute is NULL then the variable name will be used. Examples to follow. re #74
|
@hectormz : I have added to the |
|
@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.