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 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.