stringi (version 0.2-3)

stri_detect: Detect a Pattern Match

Description

Detect a Pattern Match

Usage

stri_detect(str, ..., regex, fixed, coll, charclass)

Arguments

str
character vector of strings to search in
...
additional arguments passed to the underlying functions
regex
character vector; regular expressions
fixed
character vector; fixed patterns
coll
character vector; canonically equivalent patterns
charclass
character vector; identifiers of character classes

Value

  • Returns a logical vector.

Details

A convenience function. Calls either stri_detect_regex, stri_detect_fixed, stri_detect_coll, or stri_detect_charclass, depending on the argument used.

See Also

Other search_detect: stri_detect_charclass; stri_detect_coll; stri_detect_fixed; stri_detect_regex; stringi-search