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
Vlookup unable to installHi everyone, I have been trying to install vlookup by typing in Code: findit vlookup search vlo…
Heckman model with more observations than regDear Statalist, I am running heckman models and compare the results with reg (OLS). For example heck…
bayes: mlogit - errorHello everyone, I have the following vector (A) with 73 observations: A | Freq. Percent Cum. -----…
How to plot the difference between two marginsplot?Hi, I have two marginsplot for the same model for two different groups, but I would like to have a …
Panel data rolling between country standard deviation by yearHi Statalist member. This is probably a pretty easy question to answer but I did not find a proper …
Subscribe to:
Post Comments (Atom)
0 Response to Removing duplicate words from a string variable
Post a Comment