0
library(arules)
rules <- apriori(Imp7)
inspect(rules)
rules <- apriori(Imp7,parameter = list(minlen=2, supp=0.005, conf=0.8), appearance = list(rhs=c("Status.b=D", "Status.b=G"), default="lhs"), control = list(verbose=F))
rules.sorted <- sort(rules, by="lift")
inspect(rules.sorted)
這是我試圖運行的代碼。我在R中是一個初學者。當我嘗試運行rules <- apriori(Imp7)
時,代碼行顯示我:Mining stopped (maxlen reached). Only patterns up to a length of 10 returned!
有沒有方法可以更改最大值len?R中的arules增加maxlen
它有21列105行數據。
任何幫助表示讚賞!