title: Removing display of row names from data frame
body: <p>I am creating a dataframe using this code:</p>
  
  <pre><code>df &lt;- data.frame(dbGetQuery(con, paste('select * from test')))
  </code></pre>
  
  <p>Which results in this:</p>
  
  <pre><code>    UID      BuildingCode   AccessTime
  1   123456   BUILD-1        2014-06-16 07:00:00
  2   364952   BUILD-2        2014-06-15 08:00:00
  3    95865   BUILD-1        2014-06-06 09:50:00
  </code></pre>
  
  <p>I am then trying to remove the row names (1, 2, 3, etc) as suggested <a href="https://stackoverflow.com/questions/12117629/how-to-avoid-writing-a-row-names-column-when-saving-a-data-frame-using-the-xlsx">here</a> by using this code:</p>
  
  <pre><code>rownames(df) &lt;- NULL
  </code></pre>
  
  <p>But then when I print out <code>df</code> it still displays the row names. Is there a way to not include the row names when creating the data frame? I found a suggestion about <code>row.name = FALSE</code> but when I tried it I just got errors (I might have placed it in the wrong place).</p>
  
  <p><strong>EDIT:</strong> What I want to do is convert the dateframe to a HTML table and I don't want the row name to be present in the table.</p>