Suppose I have 2 strings, and I want to find the edit distance between them using the Levenshtein method. I can do that using the code below. However, in the example below, all I can see is that it takes one "move" to transform string1 into string2. I would like to know which manipulations were done. In this case o -> p. Is there a way to find that?
string1 <- 'hello'
string2 <- 'hellp'
stringdist::stringdist(
string1,
string2,
method = 'lv'
)
#> [1] 1
Created on 2023-12-23 with reprex v2.0.2