title: Apriori Alg in R
body: <p>I am using this code </p>
  
  <pre><code>df_itemList&lt;- read.csv('data.3.txt')
  
  write.csv(df_itemList,"ItemList.csv", row.names = TRUE)
  
  txn = read.transactions(file="ItemList.csv", rm.duplicates= TRUE, format="basket",sep=",",cols=1)
  
   basket_rules &lt;- apriori(txn,parameter = list(sup = 0.01, conf = 0.5,target="rules"))
  </code></pre>
  
  <p>To run Apriori Alg on this Data <a href="https://i.stack.imgur.com/yS018.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yS018.png" alt="enter image description here"></a></p>
  
  <p>Look like this after converting it to df_itemList.CSV</p>
  
  <p><a href="https://i.stack.imgur.com/bg7j1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bg7j1.png" alt="enter image description here"></a></p>
  
  <p>the code works well and generates about 29000 rules for data sets consisting of 99 records (rows)</p>
  
  <p>But my data has (10000 records)</p>
  
  <p>for any data set has 101 records or more, the code executes in milliseconds, and gives just 4 meaningless rules .....</p>
  
  <p>and I get this response in console</p>
  
  <p><a href="https://i.stack.imgur.com/9FzLv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9FzLv.png" alt="enter image description here"></a> </p>
  
  <p>My questions is: How can I run the Apriori Alg on a bigger Dataset, more than 99 records.
  Or why doesn't my code work for bigger Dataset???</p>