pmat {lazy.irtx} | R Documentation |
Generate a permutation matrix to switch row or column.
pmat(n, i, j)
n |
the size of matrix |
i |
column number |
j |
column number |
Can be used with a character matrix.
The permutation matrix of size n
pmat(3,2,1) A=demomat(3,2) A%*%pmat(2,2,1) pmat(3,2,1)%*%A