Find Duplicated Words in a Text String

Usage

duplicates(string, threshold = 1)

Arguments

string
A character string.
threshold
An integer of the minimal number of repeats.

Find Duplicated Words in a Text String

Value

Returns a vector of all duplicated words/chunks.

Description

Find duplicated word/word chunks in a string. Intended for internal use.

Examples

## <strong>Not run</strong>: # duplicates(DATA$state) # duplicates(DATA$state[1]) # ## <strong>End(Not run)</strong>