Database Reference
In-Depth Information
yogurt (Other)
1372 34055
element (itemset/transaction) length distribution:
sizes
1 2 3 4 5 6 7 8 9 10 11 12 13 14
2159 1643 1299 1005 855 645 545 438 350 246 182 117 78 77
15 16 17 18 19 20 21 22 23 24 26 27 28 29
55 46 29 14 14 9 11 4 6 1 1 1 1 3
32
1
Min. 1st Qu. Median Mean 3rd Qu. Max.
1.000 2.000 3.000 4.409 6.000 32.000
includes extended item information - examples:
labels level2 level1
1 frankfurter sausage meet and sausage
2 sausage sausage meet and sausage
3 liver loaf sausage meet and sausage
The class of the dataset is
transactions
, as defined by the
arules
package. The
transactions
class contains three slots:
•
transactionInfo
:
A data frame with vectors of the same length as the
number of transactions
•
itemInfo
:
A data frame to store item labels
•
data
:
A binary incidence matrix that indicates which item labels appear
in every transaction
class(Groceries)
[1] "transactions"
attr(,"package")
[1] "arules"
For the
Groceries
dataset, the
transactionInfo
is not being used. Enter
Groceries@itemInfo
to display all 169 grocery labels as well as their categories.
The following command displays only the first 20 grocery labels. Each grocery label
is mapped to two levels of categories—
level2
and
level1
—where
level1
is a
superset of
level2
. For example, grocery label
sausage
belongs to the
sausage