Create a lens into a chunk of an array (hyperslab). Uses
the same syntactic rules as [
.
slab_l(..., drop = FALSE)
... | arguments as they would be passed to |
---|---|
drop | whether or not to drop dimensions with length 1. Only
applies to |
(x <- matrix(1:4, ncol = 2))#> [,1] [,2] #> [1,] 1 3 #> [2,] 2 4#> [,1] [,2] #> [1,] 2 4#> [,1] #> [1,] 4#> [,1] [,2] #> [1,] 10 20 #> [2,] 2 4