with_value_containing {tidytidbits}R 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


[Package tidytidbits version 0.3.2 Index]