grepv: Return a vector of matches.

Description Usage Arguments Value See Also Examples

View source: R/grepv.R

Description

Return a vector of matches.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
grepv(
  pattern,
  x,
  ...,
  ignore.case = FALSE,
  perl = FALSE,
  fixed = FALSE,
  useBytes = FALSE,
  invert = FALSE
)

Arguments

pattern

character scalar, pattern to match, passed to grep.

x

character vector to match to, passed to grep.

...

not used, forced later arguments to bind by name.

ignore.case

logical, passed to grep.

perl

logical, passed to grep.

fixed

logical, passed to grep.

useBytes

logical, passed grep.

invert

passed to grep.

Value

vector of matching values.

See Also

grep, grepdf

Examples

1
grepv("x$", c("sox", "xor"))

WinVector/wrapr documentation built on Nov. 21, 2020, 8:31 p.m.