permute.square | R Documentation |
Permutes the rows and columns of a square matrix.
permute.square(x, permutation)
x |
A square matrix. |
permutation |
A vector specifying the new order of rows and columns. |
A square matrix
.
Chris Brien
permute.to.zero.lowertri
terms.marginality <- matrix(c(1,0,0,0,0, 0,1,0,0,0, 0,1,1,0,0,
1,1,1,1,0, 1,1,1,1,1), nrow=5)
permtn <- c(1,3,2,4,5)
terms.marginality <- permute.square(terms.marginality, permtn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.