From edd@debian.org  Tue Apr  4 13:34:53 2000
From: edd@debian.org (Dirk Eddelbuettel)
Date: Tue, 4 Apr 2000 08:34:53 -0400
Subject: [Rd] write.table with rows and cols (PR#509)
In-Reply-To: <Pine.GSO.4.05.10004040710030.15113-100000@auk.stats>; from ripley@stats.ox.ac.uk on Tue, Apr 04, 2000 at 07:25:01AM +0100
References: <200004032323.BAA00377@pubhealth.ku.dk> <Pine.GSO.4.05.10004040710030.15113-100000@auk.stats>
Message-ID: <20000404083453.B3373@eddelbuettel.com>


With my head hanging low as this is a non-bug:

On Tue, Apr 04, 2000 at 07:25:01AM +0100, Prof Brian D Ripley wrote:
> On Tue, 4 Apr 2000 edd@debian.org wrote:
[...]
> > A frame with rownames and colnames got properly written, but the colnames
> > started 
> > without an offset -- but if the .csv file is read back in, the rownames column
> > now 
> > has the header of the first column.  
[...]

> In the S convention, the header is regarded as separate, with a potentially
> different format from the rest of the file. If I have

Ahh. Shows once again that I am still a novice when it comes to S (and R).
You are of course correct -- re-reading works just fine as expected. No bug
here.

But maybe the (extremely low-priority) need for new semantics -- I actually
only wrote the file to pass data on to my Excel using collegues at work, and
for them the csv _is_ wrong as the 'Dates' column (build from rownames) is
headerless, and the other headers are "shifted".  Having to hand-edit the
file for them is silly. 

Thanks,  Dirk

-- 
According to the latest figures, 43% of all statistics are totally worthless.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] write.table with rows and cols (PR#509)
Dirk Eddelbuettel