select_l {lenses}R Documentation

Tidyselect elements by name

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

select_l(...)

Arguments

...

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

Examples

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

[Package lenses version 0.0.3 Index]