This function replaces a specified pattern in a given text with a specified string.
Usage
replace_pattern(text, pattern, replace_with = "[REDACTED]")
Arguments
- text
The text in which the pattern is to be replaced.
- pattern
The pattern to replace in the text.
- replace_with
A string to replace the pattern with.
Value
A character vector with the pattern replaced.