June 2017
Beginner to intermediate
576 pages
15h 22m
English
Since we will want to have a basket of items to perform some association rules on, we will want to filter out the transactions that only have one item per invoice. That might be useful for a separate analysis of customers who only purchased one item, but it does not help with finding associations between multiple items, which is the goal of this exercise.
library(sqldf)
sqldf("select count(distinct InvoiceNo) from OnlineRetail") ...