makeMatSym: Replace the upper or lower triangle of a matrix with the...

Description Usage Arguments Value

Description

The replaced values will be lost following the operation of this function.

Usage

1
makeMatSym(mat, replaceUpper = TRUE)

Arguments

mat

The matrix to be made symmetric.

replaceUpper

Whether the upper triangle of the matrix should be replaced by the lower triangle. Default = TRUE; if FALSE, the lower triangle of the matrix is replaced by the upper triangle.

Value

A matrix that has been made symmetric.


andymckenzie/bayesbio documentation built on June 13, 2019, 7:01 p.m.