grepl() でできる。
carriers <- c("ezweb","docomo","softbank","vodafone")
grepl("o", carriers)
grepl("e", carriers)
結果
[1] FALSE TRUE TRUE TRUE
[1] TRUE FALSE FALSE TRUE
文字列操作は stringr パッケージが便利なので、stringr::str_detect() を使ったほうが良い。
library(stringr)
carriers <- c("ezweb","docomo","softbank","vodafone")
str_detect(carriers, "o")
str_detect(carriers, "e")