Detect presence/absence of a match

str_detect(string, pattern, negate = FALSE)

Arguments

string

Input string

pattern

Pattern to look for

negate

If TRUE, invert the result

Value

Logical vector

See also

Author

Guangchuang Yu