# NOT RUN {
# Merging two CCHS cycles with variables missing in each cycle.
# INCGHH_A is a cchsflow variable available for the 2001 CCHS cycle, while
# INCGHH_B is a cchsflow variable available for the 2003 CCHS cycle.
# Using merge_rec_data(), datasets containing INCGHH_A & INCGHH_B can be
# merged and tagged.
library(cchsflow)
income2001 <- rec_with_table(cchs2001_p, "INCGHH_A")
income2003 <- rec_with_table(cchs2001_p, "INCGHH_B")
income_merged <- merge_rec_data(income2001, income2003)
head(income_merged)
tail(income_merged)
# }
Run the code above in your browser using DataLab