title: Test Match and Order between two vectors in R
body: <p>I would like to test the match and order between two vectors. I'm aware of the match function; are there overlays to assess the order simultaneously? For example:</p>
  
  <pre><code>x &lt;- c("a", "b", "c")
  y &lt;- c("b", "a", "c")   
  x %in% y    
  </code></pre>
  
  <p>There are perfect matches, but the ordering is not correct. Thoughts on how to identify that? Thanks.</p>