Dear Statalist,
I have a variable called Name which looks like below. I would like to spilt Name into Name1 and Name2 by '/' or '-', and then have both of them ending up with the numeric term.
I thought about using spilt to do separate out the Name variable, but do not know how to make them both end with the numeric term.
Thanks!
I have a variable called Name which looks like below. I would like to spilt Name into Name1 and Name2 by '/' or '-', and then have both of them ending up with the numeric term.
| Name | Name1 | Name2 |
| Passyunk230kV | ||
| NorthBangor34.5kV | ||
| Peckville/Varden34.5kV | Peckville34.5kV | Varden34.5kV |
| ErieSouth-Warren230kV | ErieSouth230kV | Warren230kV |
| Frackville-Hauto#369kV | Frackville#369kV | Hauto#369kV |
Thanks!

Comment