duplicates | 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.