Learn R Programming

textTinyR (version 1.1.8)

levenshtein_distance: levenshtein distance of two words

Description

levenshtein distance of two words

Usage

levenshtein_distance(word1, word2)

Value

a float number

Arguments

word1

a character string

word2

a character string

Examples

Run this code

library(textTinyR)

word1 = 'one_word'

word2 = 'two_words'

lvs = levenshtein_distance(word1, word2)

Run the code above in your browser using DataLab