duplicated {arules} | R Documentation |
Find Duplicated Elements
Description
Provides the generic function duplicated()
and the methods to find
duplicated elements in
itemMatrix, associations and their subclasses.
Usage
duplicated(x, incomparables = FALSE, ...)
## S4 method for signature 'itemMatrix'
duplicated(x, incomparables = FALSE)
## S4 method for signature 'rules'
duplicated(x, incomparables = FALSE)
## S4 method for signature 'itemsets'
duplicated(x, incomparables = FALSE)
Arguments
x |
an object of class itemMatrix or associations. |
incomparables |
argument currently unused. |
... |
further arguments (currently unused). |
Value
A logical vector indicating duplicated elements.
Author(s)
Michael Hahsler
See Also
Other associations functions:
abbreviate()
,
associations-class
,
c()
,
extract
,
inspect()
,
is.closed()
,
is.generator()
,
is.maximal()
,
is.redundant()
,
is.significant()
,
is.superset()
,
itemsets-class
,
match()
,
rules-class
,
sample()
,
sets
,
size()
,
sort()
,
unique()
Other itemMatrix and transactions functions:
abbreviate()
,
crossTable()
,
c()
,
extract
,
hierarchy
,
image()
,
inspect()
,
is.superset()
,
itemFrequencyPlot()
,
itemFrequency()
,
itemMatrix-class
,
match()
,
merge()
,
random.transactions()
,
sample()
,
sets
,
size()
,
supportingTransactions()
,
tidLists-class
,
transactions-class
,
unique()
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)