upper.triangle {matrixcalc}R Documentation

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 matris

Value

A matrix.

Author(s)

Frederick Novomestky fnovomes@poly.edu

See Also

is.square.matrix

Examples

A <- matrix( seq( 1, 9, 1 ), nrow=3, byrow=TRUE )
upper.triangle( A )

[Package matrixcalc version 1.0-1 Index]