Description Usage Arguments See Also Examples
Extracts the lower triangular part of a matrix
1 | lower_triangular(x, diag = FALSE)
|
x |
a matrix |
diag |
whether the diagonal should be included |
1 2 3 4 5 6 7 | m = matrix(1:20, 4, 4)
# lower triangular part (without diagonal)
lower_triangular(m)
# lower triangular part (including diagonal)
lower_triangular(m, diag = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.