str_detach: Detach prefixes or suffixes

Description Usage Arguments References Examples

Description

Detach prefixes or suffixes

Usage

1
str_detach(x, sep = ",", side = "left", greedy = TRUE)

Arguments

...

arguments to str_filter

References

http://www.r-bloggers.com/string-manipulations-on-full-names/

Examples

1
2
3
4
5
ex = c("a", "a, b", "a, b, c", "a, b, c, d")
str_detach(ex, side = "left"  , greedy = TRUE)
str_detach(ex, side = "right" , greedy = TRUE)
str_detach(ex, side = "left"  , greedy = FALSE)
str_detach(ex, side = "right" , greedy = FALSE)

drewgriffith15/griffun documentation built on May 15, 2019, 1:56 p.m.