This function copies variable and value labels (including missing values) from one vector to another or from one data frame to another data frame. For data frame, labels are copied according to variable names, and only if variables are the same type in both data frames.
copy_labels(from, to)
Object to copy labels from.
Object to copu labels to.
Some base R functions like subset
drop variable and
value labels attached to a variable. copy_labels
coud be used
to restore these attributes.