Learn R Programming

stringb (version 0.1.17)

text_replace: replacing patterns in string

Description

replacing patterns in string

replacing patterns default

Usage

text_replace(string, pattern = NULL, replacement = NULL, ...)

# S3 method for default text_replace(string, pattern = NULL, replacement = NULL, recycle = FALSE, ...)

Arguments

string

text to be replaced

pattern

regex to look for

replacement

replacement for pattern found

...

further parameter passed through to sub

recycle

should arguments be recycled if lengths do not match?