duplicates: Find Duplicated Words in a Text String

Description Usage Arguments Value Examples

Description

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

Usage

1
duplicates(string, threshold = 1)

Arguments

string

A character string.

threshold

An integer of the minimal number of repeats.

Value

Returns a vector of all duplicated words/chunks.

Examples

1
2
3
4
5
## Not run: 
duplicates(DATA$state)
duplicates(DATA$state[1])

## End(Not run)

trinker/qdap documentation built on Sept. 30, 2020, 6:28 p.m.