igrep: case-insensitive grep

igrepR Documentation

case-insensitive grep

Description

case-insensitive grep

Usage

igrep(..., ignore.case = TRUE)

Arguments

..., ignore.case

parameters sent to base::grep()

Details

This function is a simple wrapper around base::grep() which runs in case-insensitive mode. It is mainly used to save keystrokes, but is consistently named alongside vgrep and vigrep.

Value

vector of matching indices

See Also

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

Examples

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


jmw86069/jamba documentation built on June 12, 2024, 10:28 a.m.