Learn R Programming

baizer (version 0.8.0)

str_replace_loc: replace specific characters in a string by their locations

Description

replace specific characters in a string by their locations

Usage

str_replace_loc(x, start = 1, end = nchar(x), replacement = " ")

Value

replaced string

Arguments

x

string

start

start

end

end

replacement

replacement

Examples

Run this code
str_replace_loc("abcde", 1, 3, "A")

Run the code above in your browser using DataLab