upper_tri_l: Lens into upper diagonal elements

Description Usage Arguments

Description

Create a lens into the upper diagonal elements of a matrix

Usage

1

Arguments

diag

whether or not to include the diagonal (x <- matrix(1:9, ncol = 3)) view(x, upper_tri_l()) view(x, upper_tri_l(diag = TRUE)) set(x, upper_tri_l(), c(100, 200, 300))


cfhammill/focal documentation built on May 23, 2019, 6:04 p.m.