Answers for "if string in r"

R
3

checking if a substring exists in a string r

grepl(regex, string_to_search)
Posted by: Guest on March-25-2020
0

if string in r

grepl(value, chars, fixed = TRUE)
# TRUE
Posted by: Guest on May-24-2020

Browse Popular Code Answers by Language