Detect the presentce/absence of a match

str_detect(string, pattern, negate = FALSE)

Arguments

string

input string

pattern

pattern to look for

negate

if TRUE, inverts the resulting boolen vector

Value

logical vector

Author

Guangchuang Yu