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?
Grouping and Panel DataI am carrying out a study using panel data I would like t group the countries into regions, which I …
Tagging observations in pre and post periods by idHello! I have a weakly balanced dataset (2007-2019), in which 2015 is the year when the interventio…
xtmelogit - How to solve the problem "error obtaining starting values; try fitting a marginal model in order to diagnose the problem"Dear all, I am been working on a study to examine the effect of two drugs (drug A = 1, drug B = 0) …
K-M x-axis limitsPlease! I need help with K-M survival graph x-axis modification. I have two populations I am compari…
how to graph from excel import which has numbers as variable namesI am trying to produce a line graph with separate groups but am having a couple of challenges with i…
Subscribe to:
Post Comments (Atom)
0 Response to How can I check if a string has repeated words?
Post a Comment