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 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 used this command:
ar=apriori(tr, parameter=list(support=.4, confidence=0.8, maxlen=11), appearance =list(lhs=c("a","b","c","d","e","f"),rhs=c("1","2","3","4","5")))

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
Nooshin

Quoting "Kevin E. Thorpe" <kevin.tho...@utoronto.ca>:

Four things.

First, I think you meant to send this to r-h...@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

omran...@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.tho...@utoronto.ca  Tel: 416.864.5776  Fax: 416.864.3016

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to