SORT {arules}R Documentation

Sorting Associations

Description

Provides the generic function SORT and the S4 method to sort elements in class associations (e.g., itemsets or rules).

Usage

SORT(x, ...)
## S4 method for signature 'associations':
SORT(x, by = "support", decreasing = TRUE)

Arguments

x an object to be sorted.
... further arguments are passed on.
by a character specifying the quality measure stored in x to be used to sort x.
decreasing logical. Should the sort be increasing or decreasing?

Author(s)

Michael Hahsler

See Also

associations-class

Examples

data("Adult_transactions")

## Mine frequent itemsets with Eclat.
fsets <- eclat(Adult_transactions, parameter = list(supp = 0.5))

## Print the 5 itemsets with the highest support as a list.
as(SORT(fsets)[1:5], "list")

[Package arules version 0.1-0 Index]