# NOT RUN {
data("Income")
## mine some rules with the consequent "language in home=english"
rules <- apriori(Income, parameter = list(support = 0.5),
appearance = list(rhs = "language in home=english", default = "lhs"))
## for better comparison we sort the rules by confidence and add Bayado's improvement
rules <- sort(rules, by = "confidence")
quality(rules)$improvement <- interestMeasure(rules, measure = "improvement")
inspect(rules)
is.redundant(rules)
## redundant rules
inspect(rules[is.redundant(rules)])
## non-redundant rules
inspect(rules[!is.redundant(rules)])
# }
Run the code above in your browser using DataLab