vwr (version 0.3.0)

levenshtein.neighbors: Compute Levenshtein neighbors

Description

List the neighbors of a character string by Levenshtein distance.

Usage

levenshtein.neighbors(xsource, targets)

Arguments

xsource
A character string.
targets
Potential Levenshtein 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.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