Upper triangular matrix from a vector
Creates an upper triangular square matrix from a vector.
triang( v, n )
v |
vector |
n |
desired dimension of the returned square matrix |
If the vector has less elements than the upper triangular matrix, the last elements are set to zero.
Arne Henningsen
v <- c( 1:5 ) triang( v, 3 )
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.