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