duplicates: Find Duplicated Words in a Text String

duplicatesR Documentation

Find Duplicated Words in a Text String

Description

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

Usage

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

## Not run: 
duplicates(DATA$state)
duplicates(DATA$state[1])

## End(Not run)

qdap documentation built on May 31, 2023, 5:20 p.m.