levenshtein_distance | R Documentation |
levenshtein distance of two words
levenshtein_distance(word1, word2)
word1 |
a character string |
word2 |
a character string |
a float number
library(textTinyR)
word1 = 'one_word'
word2 = 'two_words'
lvs = levenshtein_distance(word1, word2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.