title: R: How can I find the intersection of elements from two rows of a dataframe?
body: <p>I'm just getting started with R, and I'm wondering how I can find the intersection of the elements from two rows of a dataframe. I tried</p>
  
  <pre><code>intersect(thing[1,],thing[2,])
  </code></pre>
  
  <p>but it gave me a complete nonsense answer (something that definitely is not in the intersection, while omitting the thing that was in the intersection).</p>
  
  <p>How should I approach this problem?</p>