简体   繁体   English

使用R中的arules包按提升度和置信度排序

[英]Sorting by lift and confidence using arules package in R

Is there a way to sort rules by confidence and lift at the same time? 有没有办法通过置信度对规则进行排序并同时提升?

I got: 我有:

rules_order <- sort(rules, decreasing=TRUE,by="confidence")

but I cannot order by both at the same time. 但我不能同时订购。

我希望这能解决您的问题

x1 <- sort(x, by = c('support','confidence'))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM