% \item{[}{\code{signature(x = "rules")};
% extracts a subset of rules and the associated quality measures}
- coerce
signature(from = "rules", to = "data.frame")
;
represents the set of rules as a data.frame
- generatingItemsets
signature(x = "rules")
;
returns a collection of the itemsets which generated the rules, one
itemset for each rule. Note that the collection can be a multiset and
contain duplicated
elements. Use unique
to remove duplicates and obtain a
proper set. Technically this method produces the same as the
result of method items()
,
but wrapped into an
'>itemsets
object with support information.
- itemInfo
signature(object = "rules")
;
returns the whole item information data frame including item
labels
- itemLabels
signature(object = "rules")
;
returns the item labels used to encode the rules
- items
signature(x = "rules")
;
returns for each rule the union of the items in the
lhs and rhs (i.e., the itemsets
which generated the rule) as an
'>itemMatrix
- itemLabels
signature(object = "rules")
;
returns the item labels as a character vector.
The index for each label is the column index of the item in the
binary matrix.
- labels
signature(object = "rules")
;
returns labels for the rules ("lhs => rhs") as a
character
vector. The representation can be customized using
the additional parameter ruleSep
and parameters for label
defined in '>itemMatrix
% \item{length}{\code{signature(x = "rules")};
% returns the number of rules stored in the the set}
- lhs
signature(x = "rules")
;
returns the '>itemMatrix
representing the left-hand-side of the rules (antecedents)
- lhs<-
signature(x = "rules")
;
replaces the '>itemMatrix
representing the left-hand-side of the rules (antecedents)
- nitems
signature(x = "rules")
; number of all possible items in the
binary matrix representation of the object.
- rhs
signature(x = "rules")
;
returns the '>itemMatrix
representing the right-hand-side of the rules (consequents)
- rhs<-
signature(x = "rules")
;
replaces the '>itemMatrix
representing the right-hand-side of the rules (consequents)
%\item{subset}{\code{signature(x = "rules")};
% selects a subset using restrictions on the quality measures or on
% the items present in the rules (see examples).}
- summary
signature(object = "rules")