R/which.distance.function.R

Defines functions which.distance.function

which.distance.function <- function(method){
  if(method=='levenshtein'){
    distance.function<-levenshtein.distance
  }
  if(method=='hamming'){
    distance.function<-hamming.distance
  }
  if(method=='levenshtein.damerau'){
    distance.function<-levenshtein.damerau.distance
  }
  return(distance.function)
}

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.