-1
運行檢查命令後,我得到了錯誤插槽[R編程,購物籃分析
錯誤(X,S)[我]:下標越界。
basket_rules <- apriori(txn, parameter = list(sup = 0.005, conf = 0.01, target="rules"))
basket.sorted <- sort(basket_rules, by = "lift")
itemFrequencyPlot(txn, topN = 25)
inspect(basket.sorted[1:5])
誰能幫助我?
是的GT感謝:-) –