er: entire-row sorting

Description Usage Arguments

Description

Global sorting of rows

Usage

1
er(X, orderVar = min(X, na.rm = TRUE), naLast = FALSE)

Arguments

X

a matrix: each row a subject, each column a time/location across subjects

orderVar

a scalar; one of the values in X upon which the percentage of occurence will determine the ordering of the rows. Defaults to the minimum value of X

naLast

defaults to false; should NA values be sorted to first position or last. Defaults to FALSE.


swihart/lasagnar documentation built on May 30, 2019, 9:39 p.m.