setMatrixOffDiagonals {lognorm} | R Documentation |
set off-diagonal values of a matrix
Description
set off-diagonal values of a matrix
Usage
setMatrixOffDiagonals(x, diag = 1:length(value), value, isSymmetric = FALSE)
Arguments
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 |
Value
matrix with modified diagonal elements
[Package lognorm version 0.1.10 Index]