sets {arules}R Documentation

Set Operations for Associations

Description

Provides the generic set functions union, intersect and setequal and the S4 methods for sets of associations (e.g., rules, itemsets).

Usage

union(x, y)
intersect(x, y)
setequal(x, y)

Arguments

x,y sets of associations.

Value

An object of the same class as x and y.

See Also

associations-class

Examples

data("Adult")

### mine some rules
r <- apriori(Adult)

### take 2 subsets
r1 <- r[1:10]
r2 <- r[6:15]

union(r1,r2)
intersect(r1,r2)
setequal(r1,r2)

[Package arules version 0.3-0 Index]