possibly a combination of grepl()
and any()
?
like
> foo = c("hello", "world", "youve", "got", "mail")
> any(grepl("world", foo))
[1] TRUE
> any(grepl("hi", foo))
[1] FALSE
> any(grepl("hel", foo))
[1] TRUE
your questions a little unclear as to whether you want that last example to return true or not
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…