with_name {tidytidbits}R Documentation

Slice by name

Description

Slices of a vector with elements of given name, or containing given patterns. Analogous accessor functions for purrr::pluck

Usage

with_name(v, name)

with_name_containing(v, pattern)

named(name)

name_contains(pattern)

Arguments

v

A vector

name

Name of entry to pluck

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]