str_replace_loc: replace specific characters in a string by their locations

str_replace_locR Documentation

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 = " ")

Arguments

x

string

start

start

end

end

replacement

replacement

Value

replaced string

Examples

str_replace_loc("abcde", 1, 3, "A")

baizer documentation built on Oct. 19, 2023, 9:07 a.m.