setMatrixOffDiagonals: set off-diagonal values of a matrix

Description Usage Arguments Value

View source: R/autocorr.R

Description

set off-diagonal values of a matrix

Usage

1

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


lognorm documentation built on Nov. 22, 2021, 1:07 a.m.