R/suggestions.R

Defines functions suggestions

suggestions<- function(tree,string, useUpper = F){
  vara <- variations(string, useUpper)
  bucket <- c()
  result <- list()
  for(item in vara){
    if(searchWord(tree,item) == T){
      bucket <- unique(append(bucket, item))
    }
  }
  return(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.