chuck.01
2012-Feb-17 04:58 UTC
[R] incomplete final line found by readTableHeader on 'test.csv'
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. -- View this message in context: http://r.789695.n4.nabble.com/incomplete-final-line-found-by-readTableHeader-on-test-csv-tp4396383p4396383.html Sent from the R help mailing list archive at Nabble.com.
Berend Hasselman
2012-Feb-17 05:41 UTC
[R] incomplete final line found by readTableHeader on 'test.csv'
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