helper.mat.sort: Sort a matrix by a column

Description Usage Arguments Value Author(s) Examples

View source: R/helper.mat.sort.R

Description

Helper function: Sort a matrix by a certain column (increasing values).

Usage

1

Arguments

mat

Matrix to be sorted.

n

Index of column that defines sorting (increasing values).

Value

Sorted matrix.

Author(s)

Sven Kotlarski (MeteoSwiss)

Examples

1
2
3
4
5
## Not run: 
# Sort matrix mat by 2nd column
helper.mat.sort(mat,2)

## End(Not run)

SvenKotlarski/qmCH2018 documentation built on July 14, 2019, 7:39 p.m.