View source: R/utilty_functions_for_matrices.R
Check if a matrix is Lower or Upper triangular | R Documentation |
Lower/upper triangular matrix.
is.lower.tri(x, diag = FALSE)
is.upper.tri(x, diag = FALSE)
x |
A matrix with data. |
diag |
A logical value include the diagonal to the result. |
Check if a matrix is lower or upper triangular. You can also include diagonal to the check.
Manos Papadakis.
R implementation and documentation: Manos Papadakis papadakm95@gmail.com.
Intersect
x <- matrix(runif(10*10),10,10)
is.lower.tri(x)
is.lower.tri(x,TRUE)
is.upper.tri(x)
is.upper.tri(x,TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.