From olshena@mskcc.org  Mon Dec 17 23:02:11 2001
From: olshena@mskcc.org (olshena@mskcc.org)
Date: Tue, 18 Dec 2001 00:02:11 +0100 (MET)
Subject: [Rd] write.table (PR#1219)
Message-ID: <200112172302.AAA10089@pubhealth.ku.dk>

Full_Name: Adam B. Olshen
Version: 1.3.1
OS: Linux
Submission from: (NULL) (140.163.222.233)


There appears to be a bug with write.table if the object being written is a
matrix.  
Specifically, the option row.names=F gives an error.  I have seen this problem 
repeated in the Windows implementation.  An example is below.

Adam Olshen
olshena@mskcc.org

This works:

> write.table(matrix(rnorm(100),10),"blah",row.names=T)

And this works:

> write.table(as.data.frame(matrix(rnorm(100),10)),"blah",row.names=F)

This does not work:

> write.table(matrix(rnorm(100),10),"blah",row.names=F)
Error in gsub(pattern, replacement, x, ignore.case, extended) :
        invalid argument


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 (PR#1219)
olshena@mskcc.org