powered by
This function returns a lens that selects the specified columns. Requires tidyselect to be installed.
tidyselect
select_l(...)
A lens that selects the specified columns
Columns to select
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