Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

duplicated

Find Duplicated Elements


Description

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 stored in rules and itemsets.

Usage

duplicated(x, incomparables = FALSE, ...)

Arguments

x

an object of class itemMatrix or associations.

...

further arguments (currently unused).

incomparables

argument currently unused.

Value

A logical vector indicating duplicated elements.

Author(s)

Michael Hahsler

See Also

Examples

data("Adult")

r1 <- apriori(Adult[1:1000], parameter = list(support = 0.5))
r2 <- apriori(Adult[1001:2000], parameter = list(support = 0.5))

## Note this creates a collection of rules from two sets of rules
r_comb <- c(r1, r2)
duplicated(r_comb)

arules

Mining Association Rules and Frequent Itemsets

v1.6-7
GPL-3
Authors
Michael Hahsler [aut, cre, cph], Christian Buchta [aut, cph], Bettina Gruen [aut, cph], Kurt Hornik [aut, cph], Ian Johnson [ctb, cph], Christian Borgelt [ctb, cph]
Initial release
2021-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.