duplicates {qdap} | R Documentation |
Find duplicated word/word chunks in a string. Intended for internal use.
duplicates(string, threshold = 1)
string |
A character string. |
threshold |
An integer of the minimal number of repeats. |
Returns a vector of all duplicated words/chunks.
## Not run:
duplicates(DATA$state)
duplicates(DATA$state[1])
## End(Not run)