Description Usage Arguments Value Author(s) Examples
View source: R/helper.mat.sort.R
Helper function: Sort a matrix by a certain column (increasing values).
1 | helper.mat.sort(mat, n)
|
mat |
Matrix to be sorted. |
n |
Index of column that defines sorting (increasing values). |
Sorted matrix.
Sven Kotlarski (MeteoSwiss)
1 2 3 4 5 | ## Not run:
# Sort matrix mat by 2nd column
helper.mat.sort(mat,2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.