powered by
This function returns a lens that selects the specified rows.
rows_l(idx)
A lens that selects the specified rows
The rows to select
d <- data.frame(x = 1:10, y = 11:20, z = 21:30) l <- rows_l(1:2) # get the first two rows view(d, l) # set the first two rows set(d, l, 1:2)
Run the code above in your browser using DataLab