select_l {tinylens}R Documentation

include verbs.R include lens.R Select lens

Description

This function returns a lens that selects the specified columns. Requires tidyselect to be installed.

Usage

select_l(...)

Arguments

...

Columns to select

Value

A lens that selects the specified columns

Examples

d <- data.frame(x = 1:10, y = 11:20, z = 21:30)
l <- select_l(x, y)
# get the x and y columns
view(d, l)
# set the x and y columns
set(d, l, 1)

[Package tinylens version 0.1.0 Index]