Learn R Programming

arules (version 1.3-1)

is.redundant: Find Redundant Rules

Description

Provides the generic functions and the S4 method is.redundant to find redundant rules.

Usage

is.redundant(x, ...)
## S3 method for class 'rules':
is.redundant(x, measure = "confidence")

Arguments

x
a set of rules.
measure
measure used to check for redundancy.
...
additional arguments.

Value

  • returns a logical vector indicating which rules are redundant.

Details

Zaki (2000) defines redundant rules as rules where a super rule (items added to the rule's LHS) have the same or higher confidence.

In this implementation other measures, e.g. lift, can be used as well.

References

Zaki, M. J. (2000) Generating non-redundant association rules. Proceedings of the sixth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 34--42.

Examples

Run this code
data("Income")
rules <- apriori(Income, parameter = list(support = 0.5))
is.redundant(rules)

inspect(rules[!is.redundant(rules)])

Run the code above in your browser using DataLab