grepv: Grep with values returned instead of indices.

View source: R/fcn_misc.R

grepvR Documentation

Grep with values returned instead of indices.

Description

The parameter 'value' should not be passed to this function since it is passed internally already.

Usage

grepv(reg, data, ...)

Arguments

reg

regex param

data

container

...

other params forwarded to grep()

Value

values of data which matched the regex

Examples

  grepv("x", c("abc", "xyz"))
  ## --> "xyz"
  

PTXQC documentation built on March 22, 2022, 5:08 p.m.