title: Unable to import data from a sample Excel file
body: <p>I have an Excel file consisting a sample data of 5 rows. I have given the following code to import it to R.</p>
  
  <pre><code>&gt; testdata &lt;-read.table(file.choose(),header=TRUE)
  </code></pre>
  
  <p>I am receiving a warning message as follows.</p>
  
  <pre><code>Warning message:
  In read.table(file.choose(), header = TRUE) :
    incomplete final line found by readTableHeader on
  </code></pre>
  
  <p>I have ignored the warning message and have continued to view my data but found that there were no rows selected. Below is what I am arriving at</p>
  
  <pre><code>&gt; testdata
  [1] PK...
  &lt;0 rows&gt; (or 0-length row.names)
  </code></pre>
  
  <p>As I am a beginner in R I am unable to trace the error. Any help regarding the warning and error would be appreciated. Please help.</p>