title: Converting the row of a data.table to a vector
body: <p>I want to turn <code>data.table</code> rows into vectors. Here's what worked for me:</p>
  
  <pre><code>unlist(dt[row_num])
  </code></pre>
  
  <p>But is there a more native solution? I also don't like that the above retains the name when really I want a pure numeric vector instead, which then leads to:</p>
  
  <pre><code>as.numeric(unlist(dt[row_num]))
  </code></pre>
  
  <p>Seems like there should be a better option.</p>