Skip to content

write.table (PR#1219)

1 message · Brian Ripley

#
On Tue, 18 Dec 2001 olshena@mskcc.org wrote:

            
Actually, this happens only for numerical matrices, so just do

X <- matrix(rnorm(100),10)
X[] <- as.character(X)
write.table(X,"blah",row.names=F)

or even

write.table(X,"blah",row.names=F, quote=F)

Note though that for almost all purposes

write.table(format(X), "blah",row.names=F, quote=F)

would be better.

Nevertheless I'll put in the obvious fix for 1.4.0.