levenshtein_distance: Calculate Levenshtein distance

Description Usage Arguments Details Value Author(s) References Examples

View source: R/levenshtein.R

Description

Calculate Levenshtein distance for two strings str_1 and str_2

Usage

1
levenshtein_distance(str_1, str_2)

Arguments

str_1

first string for calculating the distance

str_2

second string for calculating the distance

Details

The Levenshtein distance is the minimum number of operations required to transform one string into another. Operation is defined as either an insertion, deletion or substitution.

Value

the Levenshtein distance between the specified strings

Author(s)

Daniel Rodriguez Perez

References

"Levenshtein distance." Wikipedia: The Free Encyclopedia. Wikimedia Foundation, Inc., 27 Sep. 2015. <http://en.wikipedia.org/wiki/Levenshtein_distance>

Examples

1
levenshtein_distance('saturday', 'sunday')

drodriguezperez/financialsanctions documentation built on May 17, 2019, 2:42 p.m.