lower_tri_l: Lens into lower diagonal elements

Description Usage Arguments Examples

View source: R/array-lenses.R

Description

Create a lens into the lower diagonal elements of a matrix

Usage

1

Arguments

diag

whether or not to include the diagonal

Examples

1
2
3
4
(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))

lenses documentation built on May 2, 2019, 8:51 a.m.