Skip to contents

wrapper around gsub(). For Internal usage.

Usage

gsub2(text, arg1, subs2, ic = T)

Arguments

text

CHAR. the text to be substituted

arg1

CHAR. the argument to be substituted

ic

BOOLEAN. ignore case. Default = TRUE

arg2

CHAR. the argument with the substitution

Details

A wrapper around gsub, in order to make it usable with native pipe `|>`

Examples

"foo foo FOO bar bar" |> gsub2("foo", "fool")
#> Error in gsub2("foo foo FOO bar bar", "foo", "fool"): could not find function "gsub2"