Learn R Programming

tinylens (version 0.1.0)

select_l: 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(...)

Value

A lens that selects the specified columns

Arguments

...

Columns to select

Examples

Run this code
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)

Run the code above in your browser using DataLab