Is there a grep function in R that returns TRUE if a pattern is found anywhere in the given character vector and FALSE otherwise?
grep
TRUE
FALSE
grepl is what you are looking for
grepl("is", "This is grepl test") [1] TRUE grepl("is not", "This is grepl test") [1] FALSE