12 Working with Labels
New in version 0.1.0 is the ability to incorporate variable labels into summary tables (but not yet all plots). If variables contain a label
attribute this will be displayed automatically, to disable this set nicenames=F
Variable labels will be shown in the nicenames
argument is set to TRUE
(the default). Variable labels are set using the label
attribute of individual variables (assigned using reportRmd
or another package like haven
).
reportRmd
supports the addition, removal and export of labels using the following functions:
set_labels
will set labels for a data frame from a lookup tableset_var_labels
allows you to set individual variable labels to a data frameclear_labels
removes all labels from a data frameexport_labels
extracts variable labels from a data frame and returns a data frame of variable names and variable labels