[Rd] write.table (PR#1219)

olshena@mskcc.org olshena@mskcc.org
Tue, 18 Dec 2001 00:02:11 +0100 (MET)


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._