我想从一个数据集的文本字段计算的关联规则,如使用Python下面之一: ID fav_breakfast
1 I like to eat eggs and bacon for breakfast.
2 Bacon, bacon, bacon!
3 I love pancakes, but only if they have extra syrup!
4 Waffles and bacon.
我试图做使用arules包一些市场购物篮分析,但是当我使用summary()功能的itemMatrix对象来检查哪些是最常见的物品,这些数字做不加起来。 如果我做的: library(arules)
x <- read.transactions("Supermarket2014-15.csv")
summary(x)
我得到: transactions as itemMatrix in s