check if a string is contained in a column R
str_detect("aecfg", letters)
grepl(letters,"aecfg")
# [1] TRUE
# Warning message:
# In grepl(letters, "aecfg") :
# argument 'pattern' has length > 1 and only the first element will be used
identical(str_detect("aecfg", letters),
Vectorize(grepl,"pattern", USE.NAMES=FALSE)(letters,"aecfg")) # [1] TRUE