Description Usage Arguments Value
set off-diagonal values of a matrix
1 | setMatrixOffDiagonals(x, diag = 1:length(value), value, isSymmetric = FALSE)
|
x |
numeric square matrix |
diag |
integer vector specifying the diagonals 0 is the center +1 the first row to upper and -2 the second row to lower |
value |
numeric vector of values to fill in |
isSymmetric |
set to TRUE to to only specify the upper diagonal element but also set the lower in the mirrored diagonal |
matrix with modified diagonal elements
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.