title: How to use or/and in dplyr to subset a data.frame
body: <p>I would like to subset a data.frame with a combination of or/and. This is my code using normal R function.</p>
  
  <pre><code>df &lt;- expand.grid(list(A = seq(1, 5), B = seq(1, 5), C = seq(1, 5)))
  df$value &lt;- seq(1, nrow(df))
  
  df[(df$A == 1 &amp; df$B == 3) |
      (df$A == 3 &amp; df$B == 2),]
  </code></pre>
  
  <p>How could I convert them using filter function in dplyr package? Thanks for any suggestions.</p>