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?
Categorical Variable Types: Ordinal Independent Variable (as opposed to Nominal Independent Variable)I am new to Stata. One of the packages I have prior experience with is SPSS. In SPSS, one can defi…
asroprobit with incomplete or partial rankingMy data consists of individuals presented with 10 alternatives and they mention their first and seco…
median survival time using stciDear Users, I would like to estimate median survival time for a survival model in Stata15. My file …
Probit model, collinearity from factor analysis dataHello everybody, I used predicted variables from PCA for an EFA and want to implement my findings (…
How to Move Data Up One Column (by id)I want to make pre/post column using id and standard column. pre column is the result of raising th…
Subscribe to:
Post Comments (Atom)
0 Response to How can I check if a string has repeated words?
Post a Comment