[R] Arules - Association Rules

Alexandre - UEL shimadao at gmail.com
Thu Dec 3 20:14:35 CET 2009


Hi
I'm a windows XP user.
My notebook have 1gb ram, 160gb hd, processor amd turion64 1,6gh. For
processing, it takes about 40 minutes.

This is the code i used:

dados=read.csv("C:/Documents and Settings/Administrador/Meus
documentos/My Dropbox/Estatística/Association Rules/Top2009
alterado.csv", header=T, sep=";")
library(arules)
bin=as(dados, "transactions")
rules <- apriori(bin, parameter = list(support = 0.01, confidence =
0.6))

Below is a sample of the file. I export data as CSV from excel. I have
71 columns (variabels) an 1001 lines (responses)

1. Churrascaria 	2. Supermercado 	3. Restaurante Self Service 	4.
Restaurante Chinês 	5. Buffet 	6. Sorvete
Galpão Nelore 	        Super Muffato 	         Não Sabe
	                 Jin Jin 	        Planalto 	Sávio
Vento Sul 	        Super Muffato 	         Não Sabe
Não Sabe 	        Não Sabe 	Doce Verão
Gaúcha 	                Super Muffato 	         Não Sabe
	                 Não Sabe 	        Não Sabe 	Kibon
Tradição Gaúcha 	Super Muffato 	         Não Sabe
	 Não Sabe 	        Não Sabe 	Nestlé
Não Sabe 	        Super Muffato 	         Não Sabe
Não Sabe 	        Estilo 	        Sávio
Rancho Grill 	        Viscardi 	         Akira
	                         Akira 	               Não Sabe 	Não Sabe



Thank you very for your helping!!!



On 3 dez, 01:46, Steve Lianoglou <mailinglist.honey... at gmail.com>
wrote:
> Hi,
>
> On Wed, Dec 2, 2009 at 6:57 PM, Alexandre - UEL <shima... at gmail.com> wrote:
>
> > Hello everybody!
> > I'm trying some datamining, but i'm having some problems with arule
> > package, in the end of processing R "had to be closed". I already
> > tryied to reinstall the 2.10 version, change the computer and
> > realocated more virtual memory.
>
> > Does anyone had this problem to?
>
> > I had a hiphoteses that i have to prepare the data, somehow i don't
> > know.
>
> > Thanks for helping!!!
>
> Can you provide more info here?
>
> 1. I'm assuming since you're talking about reallocating virtual
> memory, or whatever, you're on windows?
> 2. What's the exact error you're getting (what's it saying before "R
> 'had to be closed'"?
> 3. What's the size of your data? What type of data is it?
> 4. How much RAM do you have?
> 5. Are you on a 32 or 64 bit system?
> 6 What happens if you cut your data in half?
> 6. Can you provide a (very small) reproducible example of your data + code?
> ...
>
> -steve
>
> --
> Steve Lianoglou
> Graduate Student: Computational Systems Biology
>  | Memorial Sloan-Kettering Cancer Center
>  | Weill Medical College of Cornell University
> Contact Info:http://cbio.mskcc.org/~lianos/contact
>
> ______________________________________________
> R-h... at 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 provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list