title: How to get row from R data.frame
body: <p>I have a data.frame with column headers. </p>
  
  <p>How can I get a specific row from the data.frame as a list (with the column headers as keys for the list)?</p>
  
  <p>Specifically, my data.frame is </p>
  
  <pre>
        A    B    C
      1 5    4.25 4.5
      2 3.5  4    2.5
      3 3.25 4    4
      4 4.25 4.5  2.25
      5 1.5  4.5  3
  </pre>
  
  <p>And I want to get a row that's the equivalent of</p>
  
  <pre><code>&gt; c(a=5, b=4.25, c=4.5)
    a   b   c 
  5.0 4.25 4.5 
  </code></pre>