sort_matrixR Documentation

sort a matrix

Description

Take a matrix, then sorted the colums by increasing values of 1st, 2nd, 3rd,.. n lines of matrix.

Usage

sort_matrix(mat)

Arguments

mat

a numeric matrix

Details

None.

Value

A vector of indices for properly sort the columns of matrix