Learn R Programming

SSBtools (version 0.8.0)

SortRows: Sorting rows

Description

Sorting rows

Usage

SortRows(m, cols = 1:dim(m)[2], index.return = FALSE)

Arguments

m
cols
index.return

Value

sorted m

Examples

Run this code
# NOT RUN {
SortRows(matrix(sample(1:3,15,TRUE),5,3))
# }

Run the code above in your browser using DataLab