R/levenshtein.damerau.neighbors.R

Defines functions levenshtein.damerau.neighbors

Documented in levenshtein.damerau.neighbors

levenshtein.damerau.neighbors <-
function(xsource, targets){
    results<-list()
    distances<-levenshtein.damerau.distance(xsource, targets)
    for (distance in sort(unique(distances))){
        results[distance]=list(names(which(distances==distance)))
    }
    return(results)
}

Try the vwr package in your browser

Any scripts or data that you put into this service are public.

vwr documentation built on May 2, 2019, 4:23 a.m.