t = read.table ("my_file", check.names = FALSE, header = T)
gives the same result, modifying duplicate names.

Carol
--- On Sat, 7/19/08, Martin Morgan <mtmorgan@fhcrc.org> wrote:
From: Martin Morgan <mtmorgan@fhcrc.org>
Subject: Re: [BioC] problem with read.table
To: wht_crl@yahoo.com
Cc: bioconductor@stat.math.ethz.ch
Date: Saturday, July 19, 2008, 1:52 PM

Hi Carol...

Carol white <wht_crl@yahoo.com> writes:

> Hi,
> Although I set check.names to FALSE in read.table, the duplicate names get
modified. What should be done in this case?
>
> the text file to be read by read.table
>
> AM2      AM2     AM2     FAL
> 2               3             4        
5
> 1               -1           -3        -2
>
> t = read.table ("my_file", check.names = F, header = T)

Maybe spell out TRUE, FALSE (reserved words, cannot be assigned to) to
avoid getting the value of variables T, F from your environment??

Martin

>> t
> AM2      AM2.1     AM2.2     FAL
>
> 2               3             4        
5
>
> 1               -1           -3        -2
>
> instead of
>
> AM2      AM2     AM2    FAL
>
>
> 2               3             4        
5
>
>
> 1               -1           -3        -2
>
>
> Best,
> carol
>
>
>
>       
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
http://news.gmane.org/gmane.science.biology.informatics.conductor

-- 
Martin Morgan
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109

Location: Arnold Building M2 B169
Phone: (206) 667-2793


      
	[[alternative HTML version deleted]]

