upper.triangle {matrixcalc} | R Documentation |
Returns the lower triangle including the diagonal of a square numeric matrix.
upper.triangle(x)
x |
a matris |
A matrix.
Frederick Novomestky fnovomes@poly.edu
A <- matrix( seq( 1, 9, 1 ), nrow=3, byrow=TRUE ) upper.triangle( A )