apply_labs_factor: Apply factor labels to a vector

View source: R/utils.R

apply_labs_factorR Documentation

Apply factor labels to a vector

Description

Apply factor labels to a vector

Usage

apply_labs_factor(x, labels, ...)

Arguments

x

a vector to label

labels

a named vector of labels in the format c(value = label)

...

unused, needed to ignore extra arguments that may be passed

Details

Dots are needed to ignore ptype argument that may be passed to apply_labs_haven

Value

factor


REDCapTidieR documentation built on April 3, 2025, 10:50 p.m.