mgsub: Multiple argument version of gsub()

View source: R/mgsub.R

mgsubR Documentation

Multiple argument version of gsub()

Description

This functions does pattern matching and replacement on a character vector just like gsub(), but accepts multiple pattern arguments that are replaced sequentially on the target character vector.

Usage

mgsub(pattern, replacement, x, ...)

Arguments

pattern

A character vector (possibly of length >1) of patterns to be matched, see


thlytras/Rivets documentation built on April 13, 2025, 7:44 p.m.