Description Usage Arguments Value Examples
Assume the names of the matrix are : "N3","N4","N2","N1". This function will order the matrix rows and columns so the names are in the order : "N1","N2","N3","N4".
1 | detriangularisation(mat)
|
mat |
matrix - rownames and colnames must be of the form "N#" where # is an integer. It's a square matrix. |
The initial matrix ordered in a new way.
1 2 3 4 5 6 | W <- matrix(0,4,4)
W[1,2] = 1
W[2,3] = 1
W[3,4] = 1
colnames(W) = rownames(W) = c("N3","N4","N1","N2")
detriangularisation(W)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.