fast_replace: Fast escape replace

View source: R/helper_functions.R

fast_replaceR Documentation

Fast escape replace

Description

Fast escape function for limited case where only one pattern provided actually matches anything

Usage

fast_replace(string, pattern, replacement, ...)

Arguments

string

a character vector where replacements are sought

pattern

Character string to be matched in the given character vector

replacement

Character string equal in length to pattern or of length one which are a replacement for matched pattern.

...

arguments to pass to gsub


bmewing/mgsub documentation built on Nov. 4, 2022, 1:57 p.m.