var_labels_for {chevron}R Documentation

Retrieve labels for certain variables

Description

Retrieve labels for certain variables

Usage

var_labels_for(df, vars)

Arguments

df

(data.frame) containing columns with label attribute.

vars

(character) variable names in df.

Details

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.

Value

a character with replaced placeholders and a label attribute.


[Package chevron version 0.2.6 Index]