str_replace {stringr} | R Documentation |
Replace replaced occurences of a matched pattern in a string.
str_replace(string, pattern, replacement)
string |
input character vector |
pattern |
pattern to look for. See regex for
description. |
replacement |
replacement string. References of the form \1 ,
\2 will be replaced with the contents of the respective matched
group (created by () ) within the pattern. |
character vector.
gsub
which this function wraps