tril | R Documentation |
Extract the lower triangular part of a matrix.
tril(x, k = 0, diag = TRUE)
x |
A matrix. |
k |
The sub-diagonal at and below which the matrix is filled.
|
diag |
Logical indicating whether to include the diagonal. Default is
|
tril(ones(5, 5))
tril(ones(5, 5), diag = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.