with_value_containing: Slice by value

Description Usage Arguments Value

View source: R/purrr-like.R

Description

Slices of a vector with elements containing given patterns. Analogous accessor function for purrr::pluck

Usage

1
2
3

Arguments

v

A vector

pattern

Pattern passed to stringr::str_detect

Value

A slice from v containing all elements in v with the given name, or the name of which contains pattern


tidytidbits documentation built on March 8, 2021, 5:07 p.m.