Hi all, I need to loop through each observation of a (string) variable of another dataset. What is the best way of doing this?
I am trying to do:
foreach x in var_ext {
replace var1 = strpos(var2,x)
}
where var_ext is a variable in another dataset while var1 and var2 are variables in the dataset that is open.
I am trying to do:
foreach x in var_ext {
replace var1 = strpos(var2,x)
}
where var_ext is a variable in another dataset while var1 and var2 are variables in the dataset that is open.
Comment