I know the moss package is related to this but I cannot make it work yet(one similar post can be found here). For example for the string "John said John" the result should be "John" and positions 1 and 11.
Extra:
A good extra thing would be to understand multiple words as well for example "John Williams thanked John Williams" should return "John Williams". The best would be to be able to give me the longest repeated substrin for example "John loves Joh" would give "Joh" and "John Williams thanked John Will" should give "John Will"
Related Posts with How can I check if a string has repeated words?
Converting ISCO1988 4 digit codes to ISCO2008Hi, I am lost in using iscogen. I need to convert an old dataset isco88 4 digits occupation classifi…
est tab marginsDear all, I cannot have the results I want in the est tab output using : Code: quietly probit Y i.…
Twoway scatter plotHello, I hope it's a relatively simple question, but I don't know how to do it. I want to make fou…
Hausmand testHello everyone! I am relatively new to STATA and I have a problem regarding how to use the Hausman …
Reshape errorHi all, I need help in reshaping long (year2007-year2012). The desired outcome would be something l…
Subscribe to:
Post Comments (Atom)
0 Response to How can I check if a string has repeated words?
Post a Comment