str_detect_any: str_detect_any

str_detect_anyR Documentation

str_detect_any

Description

str_detect_any

Usage

str_detect_any(x, patterns, ignore_case = FALSE, negate = FALSE)

Arguments

x

(character) Input vector. Either a character vector, or something coercible to one.

patterns

(character) One or more patterns to match.

ignore_case

(logical) Passed to stringr::str_detect().

negate

(logical) Passed to stringr::str_detect().

Value

TRUE if any element of pattern is matched in x; FALSE otherwise.


BAAQMD/strtools documentation built on Nov. 23, 2023, 5:52 a.m.