title: Using write_xlsx in R
body: <p>I'm using the write_xlsx command to export data from R to excel,</p>
  
  <p>Here is the data frame that I have,</p>
  
  <pre><code> &gt;df
       X1
   A   76
   B   78
   C   10
  </code></pre>
  
  <p>Using ,</p>
  
  <pre><code>write_xlsx(df, "../mydata.xlsx")
  </code></pre>
  
  <p>gives the following output in excel,</p>
  
  <pre><code> &gt;df
  
  1  76
  2  78
  3  10
  </code></pre>
  
  <p>The column names appear in the xlsx file but the index of each row isn't printed.
  Is there any way to print the row index in the excel file?</p>