I have a variable with a row of ICD codes. Some of them are repeated
One registration looks like this "I120 N185 I509 D649 J159 A402 K658 I109 J960 N185 I509 I109 R104X I120 I509 N185"
There are duplicates of I120, N185 and I159. How can I remove them?
I tried this https://stackoverflow.com/questions/...he-same-string but it seems it only remove duplicates when they follow one after the other.
Related Posts with Removing duplicate words from a string variable
Generating Time Variable in Panel DataHi, I am working with two rounds of Indian Development Human Survey Data of round 1 and 2 (individu…
Standard output lostIn Windows 10 with Stata 16 if I log in as "admin" and issue the Stata command -pwd- Stata returns d…
local variable definition based of last character of string variable being odd or evenHi, I am trying to define a local variable based on the last character of global variable (M_crisis…
Automated means to export elasticity outputs after estimating Almost Ideal Demand System (AIDS) using the Stata command 'aidsills'?Dear Statalisters, I have been running AIDS demand systems for several population subgroups using th…
"prefer not to say" survey answersHi I am coding survey responses for stata analysis. I have many answers which are "prefer not to say…
Subscribe to:
Post Comments (Atom)
0 Response to Removing duplicate words from a string variable
Post a Comment