Hello,
I would like to replace a variable if values of a different variable are one of a set of values
For example, replace var1=1 if var2 is 746, 743, 987, 123, etc. The list is pretty long, so I would like to avoid typing out replace var1=1 if var2==743 | var2==746....etc.
Thanks,
Alyssa
I would like to replace a variable if values of a different variable are one of a set of values
For example, replace var1=1 if var2 is 746, 743, 987, 123, etc. The list is pretty long, so I would like to avoid typing out replace var1=1 if var2==743 | var2==746....etc.
Thanks,
Alyssa
Comment