This function combines the aggregated population information with the aggregated sample data. The merge is based on the domains. Out-of-sample domains will have NA values for the variables from the sample data.
combine_data(pop_data, pop_domains, smp_data, smp_domains)
a combined data set.
a data frame with population data.
a character string indicating the domain variable that is
included in pop_data
.
a data frame with sample data.
a character string indicating the domain variable that is
included in smp_data
.