with_name: Slice by name

View source: R/purrr-like.R

with_nameR 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


tidytidbits documentation built on March 18, 2022, 6:10 p.m.