Provides the generic function duplicated
and the S4 methods for itemMatrix and associations.
duplicated finds
duplicated elements in an itemMatrix.
It returns a logical vector indicating which elements
are duplicates.
Note that duplicated
can also be used to find transactions with
identical items and identical rules and itemsets in
collections stored in rules and itemsets.
data("Adult")
r1 <- apriori(Adult[1:1000])
r2 <- apriori(Adult[1001:2000])
### Note this creates a collection of rules from two sets of rulesr_comb <- c(r1, r2)
duplicated(r_comb)
r_comb