rules: Get the Association Rules from a CBA classifier

Description Usage Arguments Details Author(s) Examples

View source: R/rules.R

Description

Returns the association rules used in the model from a CBA classifier object.

Usage

1
rules(classifier)

Arguments

classifier

An object of class CBA.

...

Additional arguments not used

Details

Returns an arules rule set (object of class rules) of all of the association rules used in the classifier.

Author(s)

Ian Johnson

Examples

1
2
3
4
5
6
7
8
data(iris)
irisDisc <- as.data.frame(lapply(iris[1:4],
  function(x) discretize(x, categories=9)))
irisDisc$Species <- iris$Species

classifier <- CBA(Species ~ ., irisDisc, supp = 0.05, conf=0.9)
rules <- rules(classifier)
inspect(rules)

arulesCBA documentation built on May 30, 2017, 12:24 a.m.

Search within the arulesCBA package
Search all R packages, documentation and source code