indexes_l {lenses} | R Documentation |
Construct a lens into a subset of an object
Description
This is the lens version of [
Usage
indexes_l(els)
indexes(els)
Arguments
els |
a subset vector, can be |
Functions
-
indexes
: shorthand
Examples
x <- 1:10
view(x, indexes_l(3:5))
set(x, indexes_l(c(1,10)), NA)
head(view(iris, indexes_l(c("Sepal.Length", "Species"))))
[Package lenses version 0.0.3 Index]