Check for strict (ascencing or descending) order
checkStrictOrder
tests lines of 'dat' (matrix of data.frame) for strict order (ascending, descending or constant),
each col of data is tested relative to the col on its left.
checkStrictOrder(dat, invertCount = TRUE)
dat |
matrix or data.frame |
invertCount |
(logical) |
matrix with counts of (non-)up pairs, (non-)down pairs, (non-)equal-pairs, if 'invertCount'=TRUE resulting 0 means that all columns are folowing the described characteristics (with variabale col-numbers easier to count)
set.seed(2005); mat <- matrix(round(runif(40),1),nc=4) checkStrictOrder(mat); mat[which(checkStrictOrder(mat)[,2]==0),]
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.