powered by
This is the lens version of [[
[[
index_l(el)index(el)
index(el)
The element the lens should point to can be an integer or name.
integer
index: shorthand
index
# NOT RUN { x <- 1:10 view(x, index_l(1)) set(x, index(5), 50) head(view(iris, index(2))) # }
Run the code above in your browser using DataLab