R/levenshtein.distance.R

Defines functions levenshtein.distance

Documented in levenshtein.distance

levenshtein.distance <-
function(xsource, targets){
    distances<-stringdist(xsource, targets, method='lv')
    names(distances)<-targets
    return(distances)
}

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.