title: Arules get 0 rules for apriori algorithm, but why?
body: <p>I have data like this <a href="https://www.dropbox.com/s/x5ttafriuno3uyn/dataredundan.png?dl=0" rel="nofollow">data redundant</a>. So, i want to remove the redundant item, by unique code, then i have got this data like <a href="https://www.dropbox.com/s/rapvsrngmjkp0zc/Untitled.png?dl=0" rel="nofollow">this</a>. Then i try to get rules by arules. </p>
  
  <pre><code>library(arules)
  library(qpcR)
  data&lt;- read.csv("Book1.csv", header=TRUE)
  b&lt;-sapply(1:ncol(data), function(x) unique(data[,x]))
  b&lt;-lapply(b,as.data.frame)
  a&lt;-list()
  databaru&lt;-do.call(qpcR:::cbind.na, lapply(b, as.vector))
  databaru[]&lt;-lapply(databaru,as.factor)
  colnames(databaru)&lt;-colnames(data)
  rules&lt;-apriori(databaru, parameter=list(supp=0.0016, conf=0.1))
  inspect(rules)
  </code></pre>
  
  <p>Then when i try running it, I got 0 rules, i am sure before i removed he redundant item each column, i got many rules, but, when i try run the code, and delete the code for removing redundant item, i got 0 rule too.. (redundant : i use code "unique")
  Then i try the support and confidence give the lower value, but i still didnt get it.</p>
  
  <pre><code>Apriori
  
  Parameter specification:
   confidence minval smax arem  aval originalSupport support minlen maxlen target   ext
          0.1    0.1    1 none FALSE            TRUE  0.0016      1     10  rules FALSE
  
  Algorithmic control:
   filter tree heap memopt load sort verbose
  0.1 TRUE TRUE  FALSE TRUE    2    TRUE
  
  Absolute minimum support count: 4 
  
  set item appearances ...[0 item(s)] done [0.00s].
  set transactions ...[34440 item(s), 2561 transaction(s)] done [0.02s].
  sorting and recoding items ... [0 item(s)] done [0.00s].
  creating transaction tree ... done [0.00s].
  checking subsets of size 1 done [0.00s].
  writing ... [0 rule(s)] done [0.00s].
  creating S4 object  ... done [0.00s].
  </code></pre>
  
  <p>What should i do? what's wrong? what's happen? Thank you so much for helping</p>