var_lab_dict: Apply variable labels

View source: R/var_lab_dict.R

var_lab_dictR Documentation

Apply variable labels

Description

Dictionary style application of variable labels. Sets the "label" attribute of eacj column_names within df to the corresponding values within var_labs.

Usage

var_lab_dict(df, column_names, var_labs, match_all = TRUE)

Arguments

df

A data frame

column_names

Character vector of column names in df

var_labs

Corresponding character vector of variable labels

match_all

Do all of column_names need to be in the columns of df?

Value

df with modified attributes


svenhalvorson/qualtreats documentation built on May 3, 2024, 9:33 a.m.