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.
0 Response to Removing duplicate words from a string variable
Post a Comment