| itemSupport {arules} | R Documentation |
Provides the generic function itemSupport and S4 methods to get the
support of all items in a objects based on
itemMatrix. For example, it is used to get the
item support from an object of class
transactions without mining.
itemSupport(x, ...) ## S4 method for signature 'itemMatrix': itemSupport(x, type) ## S4 method for signature 'itemMatrix': itemSupport(x, type)
x |
an object. |
... |
further arguments are passed on. |
type |
a character specifying
if "relative" support or "absolute"
support (item counts) is returned. (default: "relative").
|
itemSupport returns a named numeric vector. Each element is the
itemSupport of the corresponds to an item in object x with the same
name. The items in the vector appear in the order of the item appearance in
the binary matrix.
Michael Hahsler
itemMatrix-class,
transactions-class
data("Adult_transactions")
itemSupport(Adult_transactions)