Learn R Programming

arules (version 0.2-6)

sets: 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

Run this code
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)

Run the code above in your browser using DataLab