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
Desscriptive Statistics and MatricesI have the code below. I want to export the result from the code below to excel and also want to add…
Convert SIF date to yearHi all, Below is a few observations of my large panel data set I got after linking several data tog…
Measuring Knowledge Level based on survey answersHi! I asked my respondents a few questions with 04 options each For example, "Which one is the lar…
How to draw a twoway picture like theseHow to draw a twoway picture like these, these two pictures,thanks Code: * Example generated by -d…
Saving a file takes foreverHi, I have a problem with saving an appended file. I have couple of files to be appended, but it tak…
Subscribe to:
Post Comments (Atom)
0 Response to Removing duplicate words from a string variable
Post a Comment