Re: [R] read.table missing values

From: <MMcIntosh_at_kvpharmaceutical.com>
Date: Thu 23 Feb 2006 - 01:40:04 EST


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: r-help-bounces@stat.math.ethz.ch
[mailto:r-help-bounces@stat.math.ethz.ch] 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 <sdavis2@mail.nih.gov> wrote:
> Does using read.delim instead of read.table fix your
>problem?
>
> Sean
>
>
> On 2/22/06 7:40 AM, "I.Szentirmai" <I.Szentirmai@rug.nl>
>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
>>
>> ______________________________________________
>> R-help@stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide!
>>http://www.R-project.org/posting-guide.html
>
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Feb 23 03:14:38 2006

This archive was generated by hypermail 2.1.8 : Thu 23 Feb 2006 - 06:23:11 EST