Dear Statalisters,
I have a string variable containing letters seperated by the ";" sign. Here are a few rows:
code
L; O; O
F; F; F
E
H; H; O
I would like to keep only one copy of each letter. Here is the desired result for the example above:
code_new
L; O
F
E
H; O
I can work around absence of spaces for the semicolon sign, I just want to get rid of duplicates inside the string.
Thank you in advance for your help.
I have a string variable containing letters seperated by the ";" sign. Here are a few rows:
code
L; O; O
F; F; F
E
H; H; O
I would like to keep only one copy of each letter. Here is the desired result for the example above:
code_new
L; O
F
E
H; O
I can work around absence of spaces for the semicolon sign, I just want to get rid of duplicates inside the string.
Thank you in advance for your help.
Comment