levenshtein: Calculate the similarity based on the Levenshtein distance

Description Usage Arguments Value Author(s) Examples

View source: R/levenshtein.R

Description

Calculate the similarity for two strings str_1 and str_2 based on the Levenshtein distance

Usage

1
levenshtein(str_1, str_2)

Arguments

str_1

first string for calculating the similarity

str_2

second string for calculating the similarity

Value

the similarity based on the Levenshtein distance between the specified strings

Author(s)

Daniel Rodriguez Perez

Examples

1
levenshtein('saturday', 'sunday')

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