I have experienced a similar problem when saving Excel data in this
format.  When any of the variables, except the last, contained missing
values, there was not a problem.  However, the problem occurred when the
last variable contained missing values.  My guess is that the last
delimiter was left off?  The "fill" option worked in my case.  Use the
option with care and double check the dataset.

HTH
Matthew McIntosh



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of I.Szentirmai
Sent: Wednesday, February 22, 2006 7:04 AM
To: r-help
Subject: Re: [R] read.table missing values

might be, but I have already found another solution: 
reat.table(file,sep="\t")

Thanks,
Istvan



On Wed, 22 Feb 2006 07:54:49 -0500
  Sean Davis <[EMAIL PROTECTED]> wrote:
> Does using read.delim instead of read.table fix your 
>problem?
> 
> Sean
> 
> 
> On 2/22/06 7:40 AM, "I.Szentirmai" <[EMAIL PROTECTED]> 
>wrote:
> 
>> Dear R users,
>> 
>> I'm trying to read data from a tab-delimited text file 
>>to
>> R, but I have problems with missing values. R gives this
>> kind of error messages: "line 1 did not have 9 
>>elements".
>> 
>> Could someone tell me how I can deal with missing values
>> in this case?
>> 
>> Thanks a lot in advance,
>> Istvan
>> 
>> ______________________________________________
>> [email protected] mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide! 
>>http://www.R-project.org/posting-guide.html
> 
>

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to