sortrows: Sort rows of matrix or table

View source: R/sortrows.R

sortrowsR Documentation

Sort rows of matrix or table

Description

Emulates the behavior of the sortrows function on Matlab

Usage

sortrows(A, column = 1)

Arguments

A

matrix

column

ordering column

Value

The A matrix sorted by the first row, then the second

Examples

mx <- matrix(c(3, 2, 2, 1, 1, 10, 0, pi), 4)
mx
sortrows(mx)

matlab2r documentation built on Feb. 16, 2023, 10:39 p.m.

Related to sortrows in matlab2r...