Reorder a matrix vertically according to a vector of new positions.
reorder(mat, new.order)
Reordered matrix.
Input matrix.
Vector of integer numbers with the new order of rows. The new order must contain as many elements as the matrix has rows and it must not contain NA values, duplicate entries, or gaps.
Philip Leifeld
This function takes a matrix and reorders its rows based on a vector of new positions.
matrixreg