with_value_containing: Slice by value

View source: R/purrr-like.R

with_value_containingR Documentation

Slice by value

Description

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

Usage

with_value_containing(v, pattern)

value_contains(pattern)

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 18, 2022, 6:10 p.m.