Hi, I want to use merge, but the problem is that my using data set is an already appended data set, so it has a few duplicates in my identification variable called ident.
Nevertheless, I only need to merge a subgroup of my using data set, for which gen==1, and there are no duplicates for ident in this subgroup.
Is there a way then to only merge to my master data the observations of my using data for which gen==1 ? (other than to first use
Code:
keep if gen==1
Thanks a lot for your help !
0 Response to Merge if
Post a Comment