superset {arules} | R Documentation |
Provides the generic functions
and the S4 methods is.subset
and is.superset
for finding super or subsets in associations and itemMatrix objects.
is.subset(set, el, proper = FALSE) is.superset(set, el, proper = FALSE)
el, set |
associations or itemMatrix objects. |
proper |
"logical" ; all or just proper super or subsets. |
looks for supersets (subsets) of el
in set
.
returns a
logical matrix with length(el)
rows
and length(set)
columns.
Each logical row vector represents which elements in set
are supersets (subsets) of the corresponding element in el
associations-class
,
itemMatrix-class
data("Adult") set <- eclat(Adult, parameter = list(supp = 0.8)) ### find the supersets of each itemset in set is.superset(set, set)