str_subset: Wrapper for stringr to retain names.

Description Usage Arguments Value Examples

Description

mimicks the behavior of str_subset but works through str_detect

Usage

1

Arguments

x_chr

a vector of characters to subset

pattern

character to match by

Value

character with equal len or shorter than x_chr

Examples

1
str_subset(letters %>% purrr::set_names(), rebus::or("a", "b"))

mbadge/MyUtilsR documentation built on May 27, 2019, 1:08 p.m.