Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_matches

Get all matches


Description

Helper function to be used in a loop to check each pattern provided for matches

Usage

get_matches(string, pattern, i, ...)

Arguments

string

a character vector where replacements are sought

pattern

Character string to be matched in the given character vector

i

an iterator provided by a looping function

...

arguments to pass to gregexpr


mgsub

Safe, Multiple, Simultaneous String Substitution

v1.7.2
MIT + file LICENSE
Authors
Mark Ewing [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.