grepv: Pattern matching

Description Usage Arguments Details

View source: R/utils.R

Description

This is a wrapper for grep. By default it returns the matching values as opposed to the indeces where the hits occur.

Usage

1
grepv(pattern, x, value = T, ...)

Arguments

pattern

character, pattern to look for

x

character vector, object wherein to look for the pattern

value

logical, set to T to return the values in that match the pattern

...

parameters passed on to grep

Details

The name is short for: (grep) returning (v)alues.


tkonopka/shrt documentation built on March 5, 2020, 2:51 p.m.