Re: [R] (no subject)

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Mon, 10 Mar 2008 07:18:11 -0400

On 10/03/2008 6:50 AM, Alfons Sutter wrote:
> Hi all,
>
> I am trying to read a text file in R! I have a warning message:
>
> In read.table(file = "data1.txt", header = T) : uncompleted last line of readTableHeader in 'data1.txt'

R is warning you that the file may be incomplete. In Unix, text files are supposed to always end with a newline. Windows programs often omit it on the last line. So on Unix, R is probably right to warn you, but it could well be a false positive if you're on Windows.

> Could you please tell me why? and how can I deal with missing value when I read this file?

How you deal with missing values really depends on what you want to do with the data. There's no general answer.

Duncan Murdoch



R-help_at_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. Received on Mon 10 Mar 2008 - 11:21:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 10 Mar 2008 - 11:30:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive