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?
Interpretation of 198% mediation effectHey everyone, I run an insignificant direkt effect of my X and Y variable but I want to test for a …
mutiple graphs in single graphHi, Does anyone knows how to make side by side bar graphs in a single graph? I did the following cod…
GOF of Logit Model: Pearson's chi2, Hosmer and Lemeshow's testHi everyone, I am using a logit model (attached below) to investigate the impact of minority status…
Stacked First-Differences Model including IV and Fixed-EffectsHello all, I have panel data on 16 countries for the years 1995 to 2007 (yearly observations). Init…
GOF of Logit Model: Pearson's chi2, Hosmer and Lemeshow's testHi everyone, I am using a logit model (attached below) to investigate the impact of minority status…
Subscribe to:
Post Comments (Atom)
0 Response to How can I check if a string has repeated words?
Post a Comment