levenshtein_distance | R Documentation |
Calculates the Levenshtein distance between two strings, which represents the minimum number of insertions, deletions, and substitutions required to transform one string into the other.
levenshtein_distance(s1, s2)
s1 |
The first string. |
s2 |
The second string. |
A numeric value representing the Levenshtein distance.
levenshtein_distance("kitten", "sitting")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.