View source: R/utilities.R View source: R/normalization.R
triu | R Documentation |
Get or symmeterize the upper/lower triangle of a symmetric matrix with the other side zeroed out
triu(x, k = 1)
tril(x, k = 1)
triu2diag(x, diagval = 0)
x |
the data matrix or vector |
k |
(0/1 flag indicate diagonal should be selected) |
diagval |
value to be added to the diagonal if converting from upper triangular matrix. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.