exists_re: Check if a pattern occurs in a character vector

Description Usage Arguments Examples

View source: R/string-utils.R

Description

Check if a pattern occurs in a character vector

Usage

1
exists_re(x, re, ...)

Arguments

x

Character vector.

re

Regular expression pattern passed to grep.

...

Additional arguments passed to grep.

Examples

1
exists_re(c("foo", "bar", "baz"), "^b")

gschofl/rmisc documentation built on May 17, 2019, 8:54 a.m.