combine_data: Combines Sample and Population Data

View source: R/combine_data.R

combine_dataR Documentation

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)

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.

Value

a combined data set.


emdi documentation built on Nov. 5, 2023, 5:07 p.m.