[R] incomplete final line found by readTableHeader on 'test.csv'

Berend Hasselman bhh at xs4all.nl
Fri Feb 17 06:41:07 CET 2012


On 17-02-2012, at 05:58, chuck.01 wrote:

> Hello, 
> I have recently had issues with read.csv where i get the following warning,
> and this happens on both my OSX and Linux machines.   Here is the warning
> and an example CSV file is attached:
> 
> Warning message:
> In read.table(file = file, header = header, sep = sep, quote = quote,  :
>  incomplete final line found by readTableHeader on 'test.csv'
> 
>  http://   http://r.789695.n4.nabble.com/file/n4396383/test.csv test.csv 
> 
> I don't quite understand.  Any thoughts are appreciated. 
> 

Exactly what the message says: the last line of your file doesn't end with a EOL character.
In your case with a linefeed.

Searching with R Site Search on the message gives a lot of results.

Goto to the end of the last line of the file in your editor and press Return and svae.

Berend



More information about the R-help mailing list