| sets {arules} | R Documentation |
Provides the generic set functions
union,
intersect and
setequal
and the S4 methods for sets of associations (e.g., rules, itemsets).
union(x, y) intersect(x, y) setequal(x, y)
x,y |
sets of associations. |
An object of the same class as x and y.
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)