Learn R Programming

inTrees (version 1.3)

sortRule: internal

Description

internal

Usage

sortRule(M, decreasing = TRUE)

Arguments

M

decreasing

Value

sorted rule conditions

Examples

Run this code
# NOT RUN {
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (M, decreasing = TRUE) 
{
    qIx = order((1 - as.numeric(ruleMetric[, "err"])), as.numeric(ruleMetric[, 
        "freq"]), -as.numeric(ruleMetric[, "len"]), decreasing = decreasing)
    return(M[qIx, ])
  }
# }

Run the code above in your browser using DataLab