I understand there is another question already for this...I am new and thus unable to comment on it. Additionally, I don't believe the question was answered.
Anyway I am running arules pkg: aprori. I am using the following params:
testbasket_rules <- apriori(testbasket_txn, parameter = list(sup = 0.1, conf = 0.5, maxlen = 100))
I get 2 rules back, but also the error:
Error in length(obj) : Method length not implemented for class rules...
So I can't even inspect the 2 rules that were generated
I can mess around with the sup
& conf
and get more or less rules back, but always get the length error.
I checked my max basket length and it is not more than 100 and you can see that i set my maxlen to 100. Does anybody have any ideas how to resolve?