Tri2M | R Documentation |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.