[R] Need help in function itemFrequency() function - Apriori Algorithm

santoshdvn santoshdvn at gmail.com
Fri Jun 1 06:21:09 CEST 2012


Hi ,

I am trying the to implement Apriori algorithm with a sample data set . 

 i am trying to find the itemFrequency of the items in the data set . but i
am getting the error as below . i load the data from excel and save the
dataset in "mydata"

*> itemFrequency(mydata)
Error in function (classes, fdef, mtable)  : 
  unable to find an inherited method for function "itemFrequency", for
signature "data.frame"*




*Here is the sample data set .*
17,13,14,16,4,9,14,1,13,0,11,13,5,7,1,4,11,5,
12,11,9,12,6,5,12,1,9,1,7,12,5,6,0,4,8,2,
18,16,16,16,8,6,14,1,14,0,9,12,4,8,0,2,11,3,
18,16,15,19,8,6,11,1,15,1,7,13,5,8,0,2,9,3,
17,13,13,22,8,4,18,1,10,3,8,11,7,6,1,2,10,2,
16,13,16,21,9,3,17,1,10,4,7,12,7,5,1,2,11,3,
22,19,10,16,10,4,18,1,12,2,8,11,6,8,0,1,8,2,
20,10,24,10,6,9,21,0,7,0,7,18,4,9,1,4,8,2,
20,21,12,15,9,7,11,1,9,3,8,14,6,7,0,1,10,3,
20,21,12,15,9,7,11,1,9,3,9,14,5,7,0,1,10,3,
18,11,24,10,9,6,19,0,12,0,7,14,4,11,0,4,9,1,
20,12,23,10,8,5,20,0,13,0,6,13,4,11,0,4,10,1,
18,19,18,16,8,4,12,0,12,0,10,15,8,6,1,1,12,1,
17,16,17,15,8,6,14,1,14,0,9,12,4,8,0,3,11,3,
19,17,14,16,8,6,14,1,14,0,8,12,4,8,0,2,12,3,
19,17,15,16,8,5,14,1,14,0,8,12,4,8,0,2,12,3,
19,15,16,16,8,6,14,1,15,0,8,12,4,8,0,2,12,3,
17,17,16,19,8,6,11,1,15,1,7,13,5,8,0,2,9,3,
18,17,15,19,8,6,11,1,15,1,7,13,5,8,0,2,9,3,
22,19,10,16,10,5,17,1,12,2,8,11,6,8,0,1,8,2,
18,20,10,18,6,8,17,1,14,1,5,16,4,7,0,2,9,2,
18,16,16,15,8,6,13,1,14,1,8,12,4,8,1,2,12,3,
20,21,12,15,9,7,11,1,10,3,8,14,7,7,0,1,9,3,


Please help

Thanks,

Santosh DVN

--
View this message in context: http://r.789695.n4.nabble.com/Need-help-in-function-itemFrequency-function-Apriori-Algorithm-tp4632025.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list