我如何准备“事务”形式的数据,但对于每个事务ID,时间影响/顺序都被考虑在内?我发现使用"split“函数,它们将按字母顺序排序。ID Items Sequence1 A 22 A 1 事务中的期望输出:1 D A C #notice that A comes after D as it is dictacted by sequence variable
#
下面的代码过去可以工作,但现在R从基本包中识别%in%,而不是从arules识别。transactions %in% rules) summary(matchedTrx)
}id.match=which(transactions arules::%in% rules)unexpected symbol in "id.match=which(transactions