bstr_detect: Detect the presence or absence of a pattern in a bstr object

Description Usage Arguments Examples

View source: R/bstr_detect.R

Description

Detect the presence or absence of a pattern in a bstr object

Usage

1
bstr_detect(bstrobj, pattern, negate = FALSE)

Arguments

bstrobj

bstr class object or character vector

pattern

regex pattern

negate

If TRUE, return non-matching elements.

Examples

1
2
bstr_detect(c("apple", "banana"), "n")
bstr_detect(c("apple", "banana"), c("a", "n"))

t-arae/bstringr documentation built on March 18, 2021, 3:08 a.m.