associations-class {arules}R Documentation

Class “associations” - A Set of Associations

Description

The associations class is a virtual class which is extended to represent mining result (e.g., sets of itemsets or rules). The class provides accessors for the quality slot and a method for sorting the associations.

Objects from the Class

A virtual class: No objects may be created from it.

Slots

quality:
Object of class data.frame for quality measures (e.g., interest measures as support or confidence). Each quality measure is a named vector with the same length as the number of elements in the set of associations and each vector element belongs to the association with the same index.

Methods

SORT
signature(x = "associations"); sorts the associations by a quality measure specified as the argument by (default: by = "support", decreasing = TRUE).
quality<-
signature(x = "associations"); replaces the quality data.frame. The length of the vectors in the data.frame has to equal the number of associations in the set.
quality
signature(x = "associations"); returns the quality data.frame.
show
signature(object = "associations")

Author(s)

Michael Hahsler

See Also

itemsets-class, rules-class,


[Package arules version 0.1-1 Index]