Learn R Programming

arules (version 0.2-1)

unique: Remove Duplicated Associations

Description

Provides the generic function unique and the S4 methods for associations. unique uses duplicated to return a set of associations with the duplicate associations removed.

Usage

unique(x, incomparables = FALSE, ...)
## S3 method for class 'associations':
unique(x, incomparables = FALSE, ...)

Arguments

x
a set of associations.
...
further arguments passed on.
incomparables
argument passed on.

Value

  • An object of the same class as x.

See Also

duplicated, associations-class

Examples

Run this code
data("Adult_transactions")

r1 <- apriori(Adult_transactions[1:1000])
r2 <- apriori(Adult_transactions[1001:2000])
r_comb <- combine(r1, r2)
r_comb <- unique(r_comb)
r_comb

Run the code above in your browser using DataLab