Re: [R] how to change number of itemes appeare in right-hand-side of the rule with apriori in R(arules)?

2010-02-18 Thread Michael Hahsler
Nooshin, arules currently only implements mining algorithms that produce rules with one item in the right-hand-side (RHS) (apriori, ruleInduction). If you need rules with more than one items then you can mine frequent itemsets (with eclat or apriori). Then you take each itemset, e.g., {1, 2,

[R] how to change number of itemes appeare in right-hand-side of the rule with apriori in R(arules)?

2010-02-18 Thread omranian
Hi All, I use arules library, and try to create an association rules for this transaction file: a,c,f,3,4,5 b,e,1,2,4 a,c,e,f,1,3,4,5 d,5 b,c,e,f,1,2,3,4 a,c,e,f,1,3,4,5 b,c,e,f,1,3,4 b,e,1,2,4 a,c,e,f,1,3,4,5 a,b,c,e,f,1,3,4 a,c,d,f,3,4,5 I want to get the rule such: {c,e,f}=> {3,4,5} I