title: How to convert row names of table into a vector
body: <p>I have returned stats on my data using the table command as such:</p>
  
  <pre><code>subject&lt;-c(4,4,2,2,3,3)
  correct&lt;-c(0,1,1,1,0,0)
  test&lt;-data.frame(subject,correct)
  freq_test&lt;-head(table(test$subject,test$correct))
  </code></pre>
  
  <p>This returns a table which looks like this</p>
  
  <pre><code>    0 1
  
    2 0 2
  
    3 2 0
  
    4 1 1
  </code></pre>
  
  <p>That's great, but the problem is that I would like, the first column to be a vector rather than row.names (so that I can code it properly as "subject").
  Is there a way to get this column to act in this way?</p>