1

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.

FrlUn
  • 43
  • 4
  • possible duplicate of [Sorting rules by lift and confidence](http://stackoverflow.com/questions/32106764/sorting-rules-by-lift-and-confidence) – lukeA Aug 21 '15 at 10:44

1 Answers1

1

I hope this will solve your problem

x1 <- sort(x, by = c('support','confidence'))
Akshay Kadidal
  • 515
  • 1
  • 7
  • 15