title: how to dplyr filter match?
body: <p>I guess this might be a rather simple question, but how to do this (base R):</p>
  
  <pre><code>df &lt;- data.frame(x=10:1,y=(1:10)^2)
  df[match(c(3,5,7), df$x),]
  </code></pre>
  
  <p>in idiomatic dplyr parlance:</p>
  
  <pre><code>tb &lt;- dplyr::as.tbl(df)
  dplyr::filter(tb, ??? )
  </code></pre>
  
  <p>or, in other words, what should go into <code>???</code> to make it functionally equivalent to the first snippet? Please note that the order of rows in resulting dataframe/tibble is relevant.</p>