Untitled

Anonymous
plain_text
11/07/2023 10:40 PM
228 B
29
Indexable
DoesRandomStateContainLetter<-function(x){
  x<-unlist(strsplit(x,""))
  randomsamp<-strsplit(sample(state.name,1),"")
  sapply(x, function(x) any(grepl(x,randomsamp)))
}
Editor is loading...