LevenshteinDistance: Levenshtein distance

View source: R/skUtils.R

LevenshteinDistanceR Documentation

Levenshtein distance

Description

Counts the number of single character deletions, insertions, and substitutions that need to be performed to turn the source string into the target string.

Usage

LevenshteinDistance(x, y)

Arguments

x, y

Strings to be compared.

Value

The Levenshtein distance between the two strings.

Author(s)

Sercan Kahveci

Examples

LevenshteinDistance("sitting","kitten")

LevenshteinDistance(c("cheese","fish"),c("child","flan"))


Spiritspeak/skMisc documentation built on April 12, 2025, 5:40 a.m.