itemsets-class {arules} | R Documentation |
The itemsets
class represents a set of itemsets and the
associated quality measures.
Objects are the result of calling the functions apriori
(e.g., with target="frequent itemsets"
in the parameter list)
or eclat
.
Objects can also be created by calls of the form
new("itemsets", ...)
.
items
:itemMatrix
containing the
items in the set of itemsetsquality
:"data.frame"
containing the quality measures for the itemsetstidList
:tidList
containing the IDs of the
transactions which support each itemset. The slot contains
NULL
if no transactions ID list is available (transactions
ID lists are only available for eclat
).
Class associations
, directly.
signature(x = "itemsets")
;
extracts a subset of itemsets and the associated quality measuressignature(from = "itemsets", to =
"data.frame")
;
represent the itemsets in readable formsignature(x = "itemsets")
;
returns the itemMatrix
representing the set of itemsetssignature(x = "itemsets")
;
replaces the itemMatrix
representing the set of itemsetssignature(object = "itemsets")
;
returns the whole item information data frame including item
labelssignature(object = "itemsets")
;
returns labels for the itemsets ("{items}") as a
character
vectorsignature(x = "itemsets")
;
returns the number of itemsets stored in the the setsignature(x = "itemsets")
;
select a subset of itemsets using restrictions on the quality
measures or on the items present in the itemsetssignature(object = "itemsets")
signature(object = "itemsets")
;
returns the transaction ID listMichael Hahsler
eclat
,
apriori
,
associations-class
,
tidList-class
data("Adult_transactions") ## Mine frequent itemsets with Eclat. fsets <- eclat(Adult_transactions, parameter = list(supp = 0.5)) ## Display the 5 itemsets with the highest support. inspect(SORT(fsets)[1:5])