hasCharacter <- function(input, nCharStr) {
inputUCase <- toupper(input)
varReturn <- numeric(0)
for (pos in 1:nchar(nCharStr)) {
varReturn <- c(varReturn, grep(substr(nCharStr, pos, pos), inputUCase))
}
varReturn <- sort(varReturn, decreasing = FALSE)
varReturn <- unique(varReturn)
return(varReturn)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.