Thanks for this, is there a way to set the condition as "begin with" let's say I have a dataset of telephone number from different countries and I would like to add certain area code on the number based on the digit that the observation start with. How do I tell stata that if a specific obs start with "xy" then gen "mn" ?
I've been looking for this information. Thanks.
Great
Thanks for this, is there a way to set the condition as "begin with" let's say I have a dataset of telephone number from different countries and I would like to add certain area code on the number based on the digit that the observation start with. How do I tell stata that if a specific obs start with "xy" then gen "mn" ?