title: R: how to add row name to a data frame?
body: <p>here is what I got</p>
  
  <pre><code>     id nobs
  [1,]  2 1041
  [2,]  4  474
  [3,]  8  192
  [4,] 10  148
  [5,] 12   96
  </code></pre>
  
  <p>and I want to make it like this</p>
  
  <pre><code>  id nobs
  1  2 1041
  2  4  474
  3  8  192
  4 10  148
  5 12   96
  </code></pre>
  
  <p>what would I do?</p>