R/variations.R

Defines functions variations

variations <- function(vector, useUpper){
  bucket<-c()
  for(word in vector){
    x <- append(deletion1(word),transpose(word))
    x <- append(x, replace(word, useUpper))
    x <- append(x, insertion(word, useUpper))
    x <- unique(x)
    bucket<-append(bucket,x)
  }
  bucket
}

Try the TSTr package in your browser

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

TSTr documentation built on May 1, 2019, 9:16 p.m.