title: How to extract row names from dataframe
body: <p>I have a dataframe that I have scrambled through matching and ordering. I ask for a position in the dataframe by matching. Now I want to take that position and get the row.names? </p>
  
  <pre><code>tmp&lt;-match(paste(dat$data), finaltable$data);
  &gt; tmp
  [1]   3  26  32  38 
  
      data Duplicate Digit6  Digit7
  45  21305    137401 137401 2017681
  82  21342    137402 137402 2017731
  81  21341    137403 137403 2017632
  66  21326    137406 137406 2017775
  64  21324    137407 137407 2017745
  80  21340    137408 137408 2017768
  </code></pre>
  
  <p>I need a piece of code that outputs the rowname based on the position outputted from tmp?</p>