Learn R Programming

fdm2id (version 0.9.6)

print.apriori: Print a classification model obtained by APRIORI

Description

Print the set of rules in the classification model.

Usage

# S3 method for apriori
print(x, ...)

Arguments

x

The model to be printed.

...

Other parameters.

See Also

APRIORI, predict.apriori, summary.apriori, apriori-class, apriori

Examples

Run this code
require ("datasets")
data (iris)
d = discretizeDF (iris,
    default = list (method = "interval", breaks = 3, labels = c ("small", "medium", "large")))
model = APRIORI (d [, -5], d [, 5], supp = .1, conf = .9, prune = TRUE)
print (model)

Run the code above in your browser using DataLab