rgrep_exact: Full Name Matching

View source: R/helper_functions.R

rgrep_exactR Documentation

Full Name Matching

Description

Recursive wrapper for grep returning only full matches to elements of a character vector.

Usage

rgrep_exact(patterns, x, ..., simplify = FALSE)

Arguments

patterns

Character vector containing regular expressions to be matched.

x

Character vector where matches are sought, or an object which can be coerced by as.character to a character vector.

...

Additional arguments to grep.

simplify

If TRUE, the result is simplified from a list to a vector or matrix if appropriate.

Value

List, matrix, or vector of the indices of the elements of x that yielded a match to each element of patterns.


ezwelty/linbin documentation built on April 19, 2023, 8:41 a.m.