Hello everyone, I have a variable called region which I would like to fix. I would like to keep the string after the ":" character.
My data looks like the following
I just want to replace this variable with a corrected one where AD: Andorra la Vella will be only Andorra la Vella. Same thing for other regions.
Thank you for your time
My data looks like the following
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str60 region "AD: Sant Julià de Lòria" "AD: Escaldes-Engordany" "AD-MD-TD: Encamp" "AD: Andorra la Vella" end
Thank you for your time
Comment