grep.start.mult: Function grep.start.mult

grep.start.multR Documentation

Function grep.start.mult

Description

Returns the index (from str_list) of the firt matching string in sub_str

Usage

grep.start.mult(sub_str, str_list)

Arguments

sub_str

vector of strings

str_list

list of strings

Value

If found, an index value. Otherwise, NA

Examples

l = c('hi','bye','sigh','rye','nigh')
sub = c('I','know','what','this','bye','function','sigh','does')
grep.start.mult(sub,l)

SCCWRP/phcorrection documentation built on Jan. 4, 2023, 9:14 p.m.