bstr_replace_name: Replace names of the bstring object

Description Usage Arguments Examples

View source: R/rename.R

Description

Replace names of the bstring object

Usage

1
bstr_replace_name(bstrobj, pattern, replacement)

Arguments

bstrobj

bstr class object or character vector

pattern

Pattern to look for.

replacement

A character vector of replacements or a function.

Examples

1
2
temp <- bstr(c("aaa", "bbb"))
c(temp, bstr_replace_name(temp, "\\d", c("one", "two")))

t-arae/bstringr documentation built on March 18, 2021, 3:08 a.m.