[R] problem with read.table

From: carol white <wht_crl_at_yahoo.com>
Date: Sun, 20 Jul 2008 02:48:29 -0700 (PDT)

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 = FALSE, header = T)

> 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]]


______________________________________________

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 Sun 20 Jul 2008 - 09:51:29 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 Sun 20 Jul 2008 - 10:32:08 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