powered by
Create a lens into the lower diagonal elements of a matrix
lower_tri_l(diag = FALSE)
whether or not to include the diagonal
# NOT RUN { (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)) # }
Run the code above in your browser using DataLab