I have 2 variables, X1 and X2 and I want to use the values of X2 as label for the values of X1:
X1 X2
1 Argentina
1 Argentina
2 Uruguay
2 Uruguay
So instead of writing
Code:
label define country_origin_code_l 1"Argentina" 2" Uruguay"
I would like to do it in a loop or in a more general way given that my dataset is larger.
Cheers.