str-detect: str_detect

str_detectR Documentation

str_detect

Description

Detect presence/absence of a match

Usage

str_detect(string, pattern, negate = FALSE)

Arguments

string

Input string

pattern

Pattern to look for

negate

If TRUE, invert the result

Value

Logical vector

Author(s)

Guangchuang Yu

See Also

Other str-utils: str_extract(), str_starts(), str_wrap()


yulab.utils documentation built on Feb. 5, 2026, 9:10 a.m.