Re: [R] Arules Package: Rules subset with 'empty' left hand side (lhs)

2016-09-14 Thread Michael Hahsler
parameters as a band aid fix. So my question is: How do I subset() association rules with empty lhs? Thanks and regards, Dirk __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] "Negative length vectors are not allowed" error

2015-01-20 Thread Michael Hahsler
to decipher it and you are right in that> you hit a limitation of the current setup which may well> be linked to the Matrix package which I maintain, and on which> 'arules' depends.>> Can you please try to find a reproducible example [with randomly> generated data; i.e.

Re: [R] eclat problem

2014-07-09 Thread Michael Hahsler
> > VLF-3200, > > VLF-3202, > > VLF-3205} > > 14 {014.5259.0/10, > > 014.5260.0/10, > > 014.5261.0/10, > > 065.1450.0/30, > > 069.1450.0/30, > > 087.0050.0, > > 087.0050.6/10, > > 136

Re: [R] convert a matrix to binaryMatrix in Recommenderlab

2011-08-30 Thread Michael Hahsler
) m ## coerce it into a binaryRatingMatrix b <- as(m, "binaryRatingMatrix") b ## coerce it back to see if it worked as(b, "matrix") Hope this helps, -Michael -- Dr. Michael Hahsler, Visiting Assistant Professor Department of Computer Science and Engineering Lyle School

Re: [R] Multiple Traveling Salesperson Problem

2011-08-30 Thread Michael Hahsler
had no time to look at those... -Michael -- Dr. Michael Hahsler, Visiting Assistant Professor Department of Computer Science and Engineering Lyle School of Engineering Southern Methodist University, Dallas, Texas (214) 768-8878 * mhahs...@lyle.smu.edu * http://lyle.smu.edu/~mhahsler

Re: [R] ATSP to TSP reformulation

2011-08-30 Thread Michael Hahsler
w names to the matrix. Thanks for the bug report! -Michael -- Dr. Michael Hahsler, Visiting Assistant Professor Department of Computer Science and Engineering Lyle School of Engineering Southern Methodist University, Dallas, Texas (214) 768-8878 * mhahs...@lyle.smu.edu * http://lyle.sm

Re: [R] ATSP to TSP reformulation

2011-08-30 Thread Michael Hahsler
ges: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] TSP_1.0-3 loaded via a namespace (and not attached): [1] tools_2.13.1 Hint: use '<-' instead of '=' for assignments. Regards, Michael -- Dr. Michael Hahsler, Vi

Re: [R] arules package question- apriori/S4 object export question

2011-01-30 Thread Michael Hahsler
ansactions on the left are listed in c(1,2,...n) and the dependent data point is in c(4 or n+1)(I have limited the max number to three) and the support/conf/lift is the next tree columns. something like: 93543_413.9 | 93555_413.9 | 93545_413.9 | 0.01541426 | 1.

Re: [R] package "arules" - 'transpose' of the transactions

2010-12-26 Thread Michael Hahsler
ster method? The method above should be very fast. -Michael Thanks -- Dr. Michael Hahsler, Visiting Assistant Professor Department of Computer Science and Engineering Lyle School of Engineering Southern Methodist University, Dallas, Texas (214) 768-8878 * mhahs...@lyle.smu.

Re: [R] clustering association rules

2010-11-11 Thread Michael Hahsler
Jüri, How did you create the output? An example to cluster transactions with arules can be found in: Michael Hahsler and Kurt Hornik. Building on the arules infrastructure for analyzing transaction data with R. In R. Decker and H.-J. Lenz, editors, /Advances in Data Analysis, Proceedings of

Re: [R] solve_TSP ignores control data, or I'm reading the help doc incorrectly.

2010-05-31 Thread Michael Hahsler
the correct way to do it is solve_TSP(tsp, "2-opt", control=list(rep=56)) -Michael -- Dr. Michael Hahsler, Visiting Assistant Professor Department of Computer Science and Engineering Lyle School of Engineering Southern Methodist University, Dallas, Texas (214) 768-88

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
th one item in the RHS. Hope that helps, Michael -- Michael Hahsler email: mich...@hahsler.net web: http://michael.hahsler.net __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guid

Re: [R] Arules - Association Rules

2009-12-04 Thread Michael Hahsler
Cornell University > Contact Info:http://cbio.mskcc.org/~lianos/contact > > __________ > r-h...@r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html > and p

[R] S4 method dispatch with inheritance

2009-07-20 Thread Michael Hahsler
#logical". "myMatrix#ANY#ANY#ANY" would also be valid [1] "dgCMatrix" attr(,"package") [1] "Matrix" > sessionInfo() R version 2.9.1 (2009-06-26) i486-pc-linux-gnu locale: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;L

Re: [R] Arules questions. I need some help please

2009-07-19 Thread Michael Hahsler
example that means to obtain lhs rhs support confidence lift 8 {It4} => {It1} 1.000 1 1.0 9 {It1} => {It4} 1.000 1 1.0 This is a little more tricky. We can create a new set of rules with rhs and lhs reversed and then see if these reversed