Dear All,
suppose
I want the first and the fourth observation to be dropped, because their var1 value appears somewhere in the var2 column. var1, var2 are string variables. Somewhat unusual problem I guess, but I hope someone can help. Of course the data is much larger, in that I cannot just use drop if var1 == 12 or something. However any var2 value necessarily appears in var1 column somewhere (where it should be dropped).
Thanks in advance!
Best,
suppose
Code:
clear
input id var1 var2
1 12
2 c5
3 14 12
4 12
5 oi
Thanks in advance!
Best,

Comment