R/sortRule.R

Defines functions sortRule

Documented in sortRule

sortRule <-
function(M,decreasing=TRUE){
  qIx = order((1- as.numeric(M[,"err"])),
              as.numeric(M[,"freq"]),
              -as.numeric(M[,"len"]),
              decreasing=decreasing)
  return(M[qIx,])
}

Try the inTrees package in your browser

Any scripts or data that you put into this service are public.

inTrees documentation built on June 1, 2022, 1:06 a.m.