Learn R Programming

vwr (version 0.3.0)

levenshtein.damerau.neighbors: Compute Levenshtein-Damerau neighbors

Description

List the neighbors of a character string by Levenshtein-Damerau distance.

Usage

levenshtein.damerau.neighbors(xsource, targets)

Arguments

xsource
A character string.
targets
Potential neighbors. Must be of type character, or convertible to type character with as.character.

Value

A list of neighbors at each distance.

See Also

levenshtein.damerau.distance

Examples

Run this code
data(serbian_latin.words)
levenshtein.neighbors('pola',serbian_latin.words)[1:2]

Run the code above in your browser using DataLab