str_detect_any: Detects regular expressions or fixed string values in...

View source: R/str_detect_any.R

str_detect_anyR Documentation

Detects regular expressions or fixed string values in character vectors.

Description

Returns a logical vector with results of stri_detect_any(), which checks for the presence of any of the elements in pattern for each element of strings.

Usage

str_detect_any(strings, patterns, type, ...)

Arguments

strings

input vector. This must be an atomic vector and will be coerced to a character vector.

patterns

patterns to look for, as defined by a POSIX regular expression. See the Extended Regular Expressions section of regex for details. See fixed, ignore.case and perl for how to use other types of matching: fixed, case insensitive and perl-compatible.

type

character vector of length one with either ``fixed'' or ``regex''. Defaults to "fixed".

...

further arguments for stri_detect_regex


rmsharp/rmsutilityr documentation built on Feb. 13, 2024, 6:01 p.m.