levenshtein_distance {RapidFuzz} | R Documentation |
Levenshtein Distance
Description
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.
Usage
levenshtein_distance(s1, s2)
Arguments
s1 |
The first string. |
s2 |
The second string. |
Value
A numeric value representing the Levenshtein distance.
Examples
levenshtein_distance("kitten", "sitting")
[Package RapidFuzz version 1.0 Index]