Hello! I am trying to import data to R. The programm always responds with: "incomplete final line found by readTableHeader on Data.doc" What does that mean, and what could I change? Thank you very much in advance. Regards Florian Stallforth
Florian - One thing to *try* would be: work from the R command line and set the parameter "nlines" in read.table() to one less than the number of lines of data in the file. If this works, then you can at least read in all but the last line. I suspect something like a missing newline character at the end of the file, or a strange file format, but that is just a guess. - tom blackwell - u michigan medical school - ann arbor - On Tue, 23 Dec 2003, Fam. Stallforth wrote:> Hello! > > I am trying to import data to R. The programm always responds with: > "incomplete final line found by readTableHeader on Data.doc" > > What does that mean, and what could I change? > > Thank you very much in advance. > Regards Florian Stallforth >
Prof Brian Ripley
2003-Dec-23 15:14 UTC
Warning when reading data files (was Re: [R] (no subject))
On 23 Dec 2003, Fam. Stallforth wrote:> Hello! > > I am trying to import data to R. The programm always responds with: > "incomplete final line found by readTableHeader on Data.doc" > > What does that mean, and what could I change?It means the final line is incomplete, and you should complete it! Does it actually have a EOL mark, that is CR or LF or CRLF depending on your operating system? The message come up when the EOF is found before EOL. I believe this is just a warning and the process continues correctly, but only believe .... -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Seemingly Similar Threads
- UTF-16 input and read.delim/scan
- read.table leaves out data when reading multiple-line records (PR#4955)
- incomplete final line found by readTableHeader on 'test.csv'
- incomplete final line found by readTableHeader
- read.table() code fails outside of the utils package