Learn R Programming

emdi (version 2.2.1)

combine_data: Combines Sample and Population Data

Description

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.

Usage

combine_data(pop_data, pop_domains, smp_data, smp_domains)

Value

a combined data set.

Arguments

pop_data

a data frame with population data.

pop_domains

a character string indicating the domain variable that is included in pop_data.

smp_data

a data frame with sample data.

smp_domains

a character string indicating the domain variable that is included in smp_data.