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?
Instruments Specification xtabond2/xtdpdgmmHi, I am trying to estimate determinants of corporate cash holdings for ~700 firms across 16 years …
Categorisation of Explanatory Variables in Dynamic Panel EstimationsHi, I am trying to model determinants of corporate cash holdings for ~700 firms across 16 years. I …
Assign a label of a variable to a different variable Code: gen x = 1 label var x "this is x" gen y = 2 label var y "this is x" // <- how to automat…
Create local including next month's nameI am working on a project that involves re-randomizing our sample every month. As could be expected,…
Loop for excel file import and Kruskal –Wallis testDear User, I am trying to import several excel files and perform Kruskal –Wallis test test. Therefor…
Subscribe to:
Post Comments (Atom)
0 Response to How can I check if a string has repeated words?
Post a Comment