offdiag | R Documentation |
Extracting the off-diagonal part of A
offdiag(A, as.vector = FALSE)
A |
a rectangular matrix |
as.vector |
if FALSE, a matrix with main diagonal set to 0 is returned otherwise, a vector of offdiagonal entries is returned |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.