Learn R Programming

matrixcalc (version 1.0-3)

upper.triangle: Upper triangle portion of a matrix

Description

Returns the lower triangle including the diagonal of a square numeric matrix.

Usage

upper.triangle(x)

Arguments

x

a matrix

Value

A matrix.

References

Bellman, R. (1987). Matrix Analysis, Second edition, Classics in Applied Mathematics, Society for Industrial and Applied Mathematics.

See Also

is.square.matrix

Examples

Run this code
# NOT RUN {
A <- matrix( seq( 1, 9, 1 ), nrow=3, byrow=TRUE )
upper.triangle( A )
# }

Run the code above in your browser using DataLab