| crossTable {arules} | R Documentation |
Provides the generic function crossTable and the S4 method to
cross-tabulate jount occurences across pairs of items.
crossTable(x, ...)
x |
object to be cross-tabulated
(transactions or itemMatrix). |
... |
further arguments (currently unused). |
A symmetric matrix of n time n, where n is the number of items times
in x. The matrix contains the co-occurrence counts between pairs of
items.
transactions-class,
itemMatrix-class.
data("Groceries")
ct <- crossTable(Groceries)
ct[1:5, 1:5]