grepvi: Variations on grep with different defaults, for convenience.

Description Usage Arguments Details Functions See Also Examples

View source: R/grep-like_functions.R

Description

Three convenient variations on grep() with modified defaults. The suffix 'i' means ignore case and the suffix 'v' means return values.

Usage

1
2
3
4
5

Arguments

pattern

character string containing a regular expression (see grep)

x

a character vector where matches are sought (see grep)

...

other grep() parameters; see Details.

Details

These functions also accept other grep parameters (apart from value= and ignore.case=), specifically: perl=, fixed=, useBytes= and invert=.

Functions

See Also

%like%

Examples

1
2
3
grepvi('[aeiou]', c(letters,LETTERS))
grepi('[aeiou]', c(letters,LETTERS))
grepv('[aeiou]', c(letters,LETTERS))

stevetnz/stevesRfunctions documentation built on May 28, 2019, 8:21 a.m.