bstr_add_obj_at: Add object attribute

Description Usage Arguments Examples

View source: R/class-bstr.R

Description

Add object attribute

Usage

1
bstr_add_obj_at(bstrobj, attr_name, attrs)

Arguments

bstrobj

bstr class object or character vector

attr_name

one string. an attribute name.

attrs

object attribute

Examples

1
2
3
4
5
temp <- bstr("hogehogehoge")
temp <- temp %>% bstr_add_obj_at("hige", "hage")
temp
str(temp)
temp %>% bstr_add_obj_at("hige", NA) %>% str

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