merge_varlabels: Merges variable.labels attribute from two surveydata objects
Description
Merges variable labels from two data objects. The labels from dat1 takes precedence.
Usage
merge_varlabels(dat1, dat2, new_names = union(names(dat1), names(dat2)))
Arguments
- dat1
surveydata object
- dat2
surveydata object
- new_names
A vector with names of the merged varlabels. Defaults to the union of names of dat1 and dat2