igrepl: case-insensitive logical grepl

igreplR Documentation

case-insensitive logical grepl

Description

case-insensitive logical grepl

Usage

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

Arguments

..., ignore.case

parameters sent to base::grep()

Details

This function is a simple wrapper around base::grepl() which runs in case-insensitive mode simply by adding default ignore.case=TRUE. It is mainly used for convenience.

Value

logical vector indicating pattern match

See Also

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

Examples

V <- paste0(LETTERS[1:5], LETTERS[4:8]);
ig1 <- grepl("D", V);
ig2 <- igrepl("D", V);
ig3 <- grepl("d", V);
ig4 <- igrepl("d", V);
data.frame(V,
   grepl_D=ig1,
   grepl_d=ig3,
   igrepl_D=ig2,
   igrepl_d=ig4);


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