Lower/Upper Triangle Elements of a Matrix
Lower/Upper triangle elements of a matrix or forms a matrix from a vector of lower/upper triangle elements
Tri2M(x, lower.tri = TRUE, reverse = TRUE, diag = TRUE)
x |
Matrix or vector |
lower.tri |
If |
reverse |
logical: if |
diag |
logical: if |
|
numeric or matrix |
Jarrod Hadfield j.hadfield@ed.ac.uk
M<-rIW(diag(3), 10) x<-Tri2M(M) x Tri2M(x, reverse=TRUE) Tri2M(x, reverse=FALSE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.