Apply factor labels to a vector
apply_labs_factor(x, labels, ...)
x
: a vector to labellabels
: a named vector of labels in the format c(value = label)
...
: unused, needed to ignore extra arguments that may be passedfactor
Dots are needed to ignore ptype
argument that may be passed to apply_labs_haven
Useful links