March 2017
Beginner to intermediate
1065 pages
27h 7m
English
In this section, we will continue with another supermarket example and analyze associations in the Groceries dataset. In order to use this dataset and to explore association rules in R, we need to install and load the arules package:
install.packages("arules")
library(arules)
data(Groceries)We can now explore relationships between purchased products in this dataset. This dataset is already in a form exploitable by apriori (transactions). We will first use the default parameters as follows:
rules = apriori(Groceries)
The output is provided in the following screenshot:

Running apriori on ...
Read now
Unlock full access