title: Data Frame issue in R
body: <p>I am getting the following error when I am run the below code in R. All I want to do is to find the differences between two data sets.</p>
  
  <pre><code>setA &lt;- c(1,3,9)
  setB &lt;- c(2,3,4,5,6,7)
  removedfromsetA &lt;- setdiff(setA,setB)
  addedtosetB &lt;- setdiff(setB,setA)
  
  commoncolumns &lt;- intersect(setA,setB)
  
  Comparions &lt;- data.frame(removedfromsetA,addedtosetB)
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Error in data.frame(removedfromsetA, addedtosetB) : 
    arguments imply differing number of rows: 2, 5
  </code></pre>