lgrep: Logical grep

View source: R/lgrep.R

lgrepR Documentation

Logical grep

Description

This functions creates a logical vector to indicate which elements of x include the pattern.

Usage

lgrep(x, pattern, ...)

Arguments

x

A character vector

pattern

A pattern expression for grep

...

Additional options sent to grep

Examples

lgrep(LETTERS,"A|B|Z")
"A|B|Z" %charin% LETTERS

thomasgstewart/tgsify documentation built on Aug. 1, 2024, 4:55 p.m.