Rdocumentation
powered by
Learn R Programming
stremo (version 0.2)
mirror.tri: Place the values below or above the diagonal of a square matrix in the opposite triangle.
Description
This function gets the values below or above the diagonal of a square matrix and transposes them.
Usage
mirror.tri(mat, upper.on.lower = FALSE)
Arguments
mat
A square matrix.
upper.on.lower
Should the upper values be transposed to the triangle below the diagonal?