From rasche at molgen.mpg.de  Wed Jun 15 13:56:16 2005
From: rasche at molgen.mpg.de (rasche@molgen.mpg.de)
Date: Wed, 15 Jun 2005 13:56:16 +0200 (CEST)
Subject: [Rd] write.table confused by rownames/colnames (PR#7941)
Message-ID: <20050615115616.7477CEC76@slim.kubism.ku.dk>

Full_Name: Axel Rasche
Version: 2.1.0
OS: Win2000
Submission from: (NULL) (141.14.21.81)


Hi,

write.table does not accept the second statement with
    <col.names = NA, row.names = FALSE>.
I do not see why this should not be possible.

test = matrix(1:4, 2, 2, dimnames = list( c("a","b"), c("c","d") ))
write.table(test, file = "test.txt", sep = "\t", quote = FALSE,
	col.names = NA, row.names = FALSE)
write.table(test, file = "test.txt", sep = "\t", quote = FALSE, 
	col.names = NA)
write.table(test, file = "test.txt", sep = "\t", quote = FALSE, 
	col.names = TRUE, row.names = FALSE)
write.table(test, file = "test.txt", sep = "\t", quote = FALSE, 
	col.names = FALSE, row.names = FALSE)

Thanks,
Axel



[Rd] write.table confused by rownames/colnames (PR#7941)
rasche@molgen.mpg.de