str_replace {stringr}R Documentation

Replace replaced occurences of a matched pattern in a string.

Description

Replace replaced occurences of a matched pattern in a string.

Usage

str_replace(string, pattern, replacement)

Arguments

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.

Value

character vector.

See Also

gsub which this function wraps


[Package stringr version 0.2 Index]