stringr (version 0.6.2)

str_replace: Replace first occurrence of a matched pattern in a string.

Usage

str_replace(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