/* 1-1 match merge Each data file contains demographic data for all the counties in each state, MD, DC, and VA. */ /* Describe the individual datasets */ foreach fname in mdpop00.dta mdpop01.dta mdpop02.dta mdpop03.dta mdpop04.dta mdpop05.dta { desc using `fname' } /* 1-to-1 merge example */ use mdpop00, clear foreach fname in mdpop01 mdpop02 mdpop03 mdpop04 mdpop05 { merge 1:1 county using `fname' assert _merge==3 drop _merge } /* Examine the append outcome */ desc list /* Save the file */ save merged-md00-05, replace