I have an Excel file consisting a sample data of 5 rows. I have given the following code to import it to R.
> testdata <-read.table(file.choose(),header=TRUE)
I am receiving a warning message as follows.
Warning message:
In read.table(file.choose(), header = TRUE) :
incomplete final line found by readTableHeader on
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
> testdata
[1] PK...
<0 rows> (or 0-length row.names)
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.