Learn R Programming

stringr (version 0.6.2)

str_replace_all: Replace all occurrences of a matched pattern in a string.

Usage

str_replace_all(string, pattern, replacement)

Arguments

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.

string{input vector. This must be an