[R] Fwd: Re: Problem with Apriori

Pascal Oettli kridox at ymail.com
Mon Jul 9 09:09:04 CEST 2012


Good Morning,

I forward your email to the R-help list.

Regards.


-------- Message original --------
Sujet: Re: [R] Problem with Apriori
Date : Fri, 6 Jul 2012 12:45:47 +0200
De : Jolinda Bartlett <jolinda at eighty20.co.za>
Pour : Pascal Oettli <kridox at ymail.com>

Good morning

I am using Windows and the arules package to perform the Apriori. Please
see my code below:

library(arules)

tr<-read.transactions("apriori_data.txt",format="basket",sep=",")

rules <- apriori(tr, parameter= list(supp=0.00006, conf=0.05, minlen=4,
maxlen = 4))

inspect(rules)


WRITE(rules, file="rules_jb_2_to_1_lower.txt", sep=",", quote=FALSE)

Kind regards

Jolinda

On Fri, Jul 6, 2012 at 12:23 PM, Pascal Oettli <kridox at ymail.com> wrote:

> Good morning,
>
> 1. What is your OS?
>
> 2. Which package do you use to perform the Apriori?
>
> 3. Without providing any reproducible code, it will probably be
> complicated to answer you.
>
> Best Regards
>
>
> Le 06/07/2012 18:15, Jolinda Bartlett a écrit :
>
>  Good morning
>>
>> When I try to run an Apriori, I keep often the following message:
>>
>> checking subsets of size 1Error in apriori(tr, parameter = list(supp =
>> 3e-05, conf = 0.05, minlen = 2,  :
>>    internal error in trio library
>>
>> Other time it works fine on the same data. What can be the reason for
>> this?
>>
>>
>


-- 
Jolinda Bartlett

Eighty20 Consulting
Tel: 021 460 0440
Fax: 087 625 0649

3.1 East Wing
The Palms
145 Sir Lowry Road
Woodstock 7925
Cape Town
South Africa



More information about the R-help mailing list