apply_labs_factor function

Apply factor labels to a vector

Apply factor labels to a vector

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

Returns

factor

Details

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