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?
Weighted combined score predicting outcomeI have this quite open question as I have a large longitudinal dataset with multiple options. Howeve…
Problems with the use autocompletion in do-filesSome things I recognized using autocompletion in Stata 16.0: the comand "mvdecode" does not appear …
Panel data: building sums correcting for focal panel ID characteristicsHello, I am trying to calculate sumi(xi*zj) where xi = a dummy zj = a dummy xi is connected to in f…
Stereotype logistic regression vs. Multinomial and Ordinal Logistic RegressionWhat are the ways to compare the fit of multinomial, ordinal, and stereotype logistic regression to …
create a 2-way summary tableHi all My data include - id and industry are the firm id and the industry of the firm - first_cer…
Subscribe to:
Post Comments (Atom)
0 Response to How can I check if a string has repeated words?
Post a Comment