select_l: Tidyselect elements by name

Description Usage Arguments Examples

Description

Create a lens into a named collection. On set names of the input are not changed. This generalizes dplyr::select to arbitrary named collections and allows updating.

Usage

1

Arguments

...

An expression to be interpreted by tidyselect::vars_select which is the same interpreter as dplyr::select

Examples

1
2
lets <- setNames(seq_along(LETTERS), LETTERS)
set(lets, select_l(G:F, A, B), 1:4) # A and B are 3,4 for a quick check

cfhammill/focal documentation built on May 23, 2019, 6:04 p.m.