title: R pruning mining rules - apriori
body: <p>I have a question about rules obtained using apriori in R.</p>
  
  <p>After data input, conversion and so on, I typed the command</p>
  
  <blockquote>
    <p>rules &lt;- apriori(orders, parameter = list(supp = 0.01, conf = 0.5,
    maxlen=2))</p>
  </blockquote>
  
  <p>and I get my rules. For example:</p>
  
  <pre><code> lhs        rhs        support confidence      lift
  1  {16058} =&gt; {16059} 0.01218522  0.9375000 67.886029
  2  {16059} =&gt; {16058} 0.01218522  0.8823529 67.886029
  3  {10049} =&gt; {10021} 0.01462226  0.7826087 34.406832
  4  {10021} =&gt; {10049} 0.01462226  0.6428571 34.406832
  </code></pre>
  
  <p>My answer is: is there a way to prune rules that are not interesting for me?
  In this case I'd like to see just the first and the third rule, to avoid a "circular" rule that connects two items with two rules.</p>
  
  <p>Thank you!</p>