Append value labels to variable
append_var_lab.RdAdds human-readable value labels to a variable in a data.table using the PUMS codebook. Use for reporting, QA, or making tables more interpretable.
Details
Reads value labels from the PUMS codebook using project settings.
Merges labels onto the specified variable, matching by value.
Adds a new column named _label with factor labels.
Returns a copy; does not modify by reference.