Full_Name: Andreas Version: R 2.0.0 OS: Linux Submission from: (NULL) (193.174.58.148) R 2.0.0> x <- data.frame(x=c(1,2), x=c(1,2)) > write.table(x, col.names=NA, sep="\t")"" "x" "x.1" "1" 1 1 "2" 2 2 R 1.9.1> write.table(x, col.names=NA, sep="\t")"" "x" "x" "1" 1 1 "2" 2 2
Prof Brian Ripley
2004-Oct-25 11:03 UTC
[Rd] incorrect report (was write.table in R 2.0.0) (PR#7312)
Note this is nothing to do with write.table, as> data.frame(x=c(1,2), x=c(1,2))x x.1 1 1 1 2 2 2 which write.table faithfully reports. This change *is* in the NEWS file o data.frame(check.names = TRUE) (the default) enforces unique names, as S does. However, there are several bugs I wish to report in a.buness@dkfz.de, who has wasted our time with this report by 0) Not reading the help pages for write.table and data.frame 1) Not reading the section BUGS in the FAQ 2) Not reading the posting guide 3) Not reading the NEWS file 4) Using an incorrect subject line 5) Not actually saying what the bug is supposed to be. On Mon, 25 Oct 2004 a.buness@dkfz.de wrote:> Full_Name: Andreas6) Not giving his full name.> Version: R 2.0.0 > OS: Linux > Submission from: (NULL) (193.174.58.148) > > > R 2.0.0 > > > x <- data.frame(x=c(1,2), x=c(1,2)) > > write.table(x, col.names=NA, sep="\t") > "" "x" "x.1" > "1" 1 1 > "2" 2 2 > > > R 1.9.1 > > > write.table(x, col.names=NA, sep="\t") > "" "x" "x" > "1" 1 1 > "2" 2 2 > > ______________________________________________ > R-devel@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >-- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
This has nothing to do with write.table. The column names in x are "x" and "x.1". This is documented in the NEWS file: o data.frame(check.names = TRUE) (the default) enforces unique names, as S does. Duncan Murdoch On Mon, 25 Oct 2004 10:36:48 +0200 (CEST), a.buness@dkfz.de wrote:>Full_Name: Andreas >Version: R 2.0.0 >OS: Linux >Submission from: (NULL) (193.174.58.148) > > >R 2.0.0 > >> x <- data.frame(x=c(1,2), x=c(1,2)) >> write.table(x, col.names=NA, sep="\t") >"" "x" "x.1" >"1" 1 1 >"2" 2 2 > > >R 1.9.1 > >> write.table(x, col.names=NA, sep="\t") >"" "x" "x" >"1" 1 1 >"2" 2 2 > >______________________________________________ >R-devel@stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-devel