str_detach: Detach prefixes or suffixes

Description Usage Arguments References Examples

View source: R/utils.R

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 Nov. 21, 2018, 8:24 p.m.