with_name: Slice by name

Description Usage Arguments Value

View source: R/purrr-like.R

Description

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

Usage

1
2
3
4
5
6
7

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 8, 2021, 5:07 p.m.