reg_match: Match registrations to a regex pattern

Description Usage Arguments Value

Description

Wrapper function around grep that returns the indices of the vector that match the provided regular expression. To help with matching whitespace and case are ignored.

Usage

1
reg_match(x, my_regex, ...)

Arguments

x

character vector of registrations

my_regex

regex pattern you want to match

...

additional arguments that grep can use

Value

indices of x that match the given pattern


tjtnew/usefulR documentation built on May 11, 2019, 8:28 p.m.