title: How to avoid writing a row.names column when saving a data.frame using the xlsx package
body: <p>I have a data frame like this one below and I really want to remove the row names when I export it to a excel file using the xlsx package.</p>
  
  <pre><code>bd &lt;- data.frame(id = 1:200, A = c(rep("One", 100), rep("Two", 100)), 
               B = c(rep(1,50), rep(0, 50), rep(1, 50), rep(0, 50)))
  </code></pre>
  
  <p>I have already tried to use the command below, but it keep them in the first column of the excel file.</p>
  
  <pre><code>bd &lt;- data.frame(id = 1:200, A = c(rep("One", 100), rep("Two", 100)), 
               B = c(rep(1,50), rep(0, 50), rep(1, 50), rep(0, 50)), row.names=NULL)
  </code></pre>
  
  <p>Is there any way to do this?</p>