vigrep: case-insensitive grep, returning values

vigrepR Documentation

case-insensitive grep, returning values

Description

case-insensitive grep, returning values

Usage

vigrep(..., value = TRUE, ignore.case = TRUE)

Arguments

..., value, ignore.case

parameters sent to base::grep()

Details

This function is a simple wrapper around base::grep() which runs in case-insensitive mode, and returns matching values. It is particularly helpful when grabbing values from a vector.

Value

vector of matching values

See Also

Other jam grep functions: grepls(), igrepHas(), igrepl(), igrep(), provigrep(), unigrep(), unvigrep(), vgrep()

Examples

V <- paste0(LETTERS[1:5], LETTERS[4:8]);
vigrep("d", V);


jmw86069/jamba documentation built on Oct. 9, 2024, 10:52 a.m.