ExtractRules: Extract Rules

Description Usage Arguments Value

View source: R/HelperFunctions.R

Description

This function extracts the rule from an object of class Rules function in the form of It1, ... ItN -> ITK.

Usage

1
2
ExtractRules(rules, maxNumConsequent = NULL, order_by = NULL,
  decreasing = TRUE)

Arguments

rules

An object of class Rules.

maxNumConsequent

Maximal length the reported rule consequent should have.

order_by

Specifiy up to four metrics out of support, confidence, lift, leverage by which the given rules should be sorted.

decreasing

Should the rules start with the smallest or highest values of the specified metrics?

Value

The rules from the left hand and right hand side in the form of It1, ... ItN -> ITK in a data.frame. This data.frame does have columns lhs, rhs, unnamed, support and confidence.


TimToebrock/Rpriori documentation built on Oct. 18, 2020, 9:41 p.m.