sort_mat | R Documentation |
Sorts a given matrix by a specific column while retain the elements in each row.
x |
A |
col |
A |
This functions sorts a matrix based on one column, keeping the rows together.
Note that col
should be a zero-based index of x
(i.e., first column is 0).
The matrix sorted by values in the specified column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.