lower_tri_l {lenses} | R Documentation |
Lens into lower diagonal elements
Description
Create a lens into the lower diagonal elements of a matrix
Usage
lower_tri_l(diag = FALSE)
Arguments
diag |
whether or not to include the diagonal |
Examples
(x <- matrix(1:9, ncol = 3))
view(x, lower_tri_l())
view(x, lower_tri_l(diag = TRUE))
set(x, lower_tri_l(), c(100, 200, 300))
[Package lenses version 0.0.3 Index]