bgrep: Boolean grep function

View source: R/base.R

bgrepR Documentation

Boolean grep function

Description

This function looks for pattern in each of the elements of string, returning TRUE for each element that contains pattern, and FALSE for the other elements. This function is a thin wrapper around stringr::str_detect()

Usage

bgrep(string, pattern)

Arguments

string

The (possibly vectorized) string to process.

pattern

The (possibly vectorized) regexp pattern to use.

Value

A vector with boolean values indicating in which elements of string matched the corresponding elements in pattern.


torfason/zulutils documentation built on Aug. 21, 2023, 5:46 p.m.