vgrep: grep, returning values

vgrepR Documentation

grep, returning values

Description

grep, returning values

Usage

vgrep(..., value = TRUE, ignore.case = FALSE)

Arguments

..., value, ignore.case

parameters sent to base::grep()

Details

This function is a simple wrapper around base::grep() which returns matching values. It is particularly helpful when grabbing values from a vector, but where the case (uppercase or lowercase) is known.

Value

vector of matching values

See Also

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

Examples

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


jmw86069/jamba documentation built on March 26, 2024, 5:26 a.m.