Retrieve labels for certain variables
var_labels_for(df, vars)
a character
with replaced placeholders and a label
attribute.
(data.frame
) containing columns with label attribute.
(character
) variable names in df
.
The labels will be returned if the column has label
attribute, otherwise the column name will be returned.
Any values between brackets will be replaced with dunlin::render_safe
.