[R] help

omranian at uni-potsdam.de omranian at uni-potsdam.de
Wed Feb 17 14:47:37 CET 2010

No no...
This is not in R code. I mean that when in the R, I use arules  
library, and try to create a association rules for this transaction  

I want to get the rule such:
{c,e,f}=> {3,4,5}

I used this command:
ar=apriori(tr, parameter=list(support=.4, confidence=0.8, maxlen=11),  

and I just get the rule such:
{c,e,f} => {3}
{c,e,f} => {4}
and the number of items appear in the right hand side of the rules is  
always 1.
but I want to see more than 1 item in the right hand side of the rules  
such left hand size.in the left hand side I can see 1, 2 or 5 item but  
in the rhs just one. I need to have more than 1 item in rhs.

thanks a lot

Quoting "Kevin E. Thorpe" <kevin.thorpe at utoronto.ca>:

> Four things.
> First, I think you meant to send this to r-help at r-project.org.
> Second, I'm not even sure what you are asking.  The "examples" you give
> are not even valid R code.  Are you sure this is an R question?  If so,
> make your question clearer.
> Third, please use a more informative subject than "help."
> Fourth. please read the posting guide
> 	http://www.r-project.org/posting-guide.html
> omranian at uni-potsdam.de wrote:
>> Hello,
>> How can I change the number of items appear in right hand side of a  
>>  rule? I always get
>> just one item in rhs
>> a,b,c=>1
>> but I want to see the rules such:
>> a,b,c=>1,2,3,4
>> please help me!!!
>> tnx
> -- 
> Kevin E. Thorpe
> Biostatistician/Trialist, Knowledge Translation Program
> Assistant Professor, Dalla Lana School of Public Health
> University of Toronto
> email: kevin.thorpe at utoronto.ca  Tel: 416.864.5776  Fax: 416.864.3016

More information about the R-help mailing list