title: Reading excel file in R : arguments imply differing number of rows
body: <p>I am trying to read an Excel file in R. I have manually made a file like this.</p>
  
  <p>A  B  C</p>
  
  <p>1  2  3</p>
  
  <p>3  1  2</p>
  
  <p>I am using this code that is giving me the error </p>
  
  <blockquote>
    <p>arguments imply differing number of rows : 2, 1, 0</p>
  </blockquote>
  
  <pre><code>my_data &lt;- read.xlsx('file.xlsx', sheetName='data', startRow=1,colNames=FALSE,
             rowNames=TRUE,rows=NULL,cols=NULL,na.strings="NA")
  </code></pre>
  
  <p>Can you please guide me what am I doing wrong ? </p>