[BioC] How to write a text file of a pamr.confusion table ?

Giulio Di Giovanni perimessaggini at hotmail.com
Tue Nov 29 15:02:30 CET 2005


Hi,

really I hope this is not a stupid question. I would like to write a text 
file with the output of  pamr.confusion function. Obviously I tried first 
with the usual

>write.table(file="test.txt",pamr.confusion(mysamplespamtrain, thr))
   K  N Class Error rate
K 26  4        0.1333333
N  2 23        0.0800000
Overall error rate= 0.109

but all I write is an empty file. The same with "write" or assigning 
pamr.confusion to a variable (pc <- pamr.confusion(.....) ).
I also tried changing the device, to write a jpeg or whatelse; I tried to 
play with Device related commands. No way. I followed James McDonald 
suggestion
found in the mail archive.

>pamr.confusion(mData.results, threshold=4.0)
(table)
>savePlot("Confusion", "wmf")
Error in savePlot("Confusion", "wmf") : no such device (...well, there's no 
graph device...).

Anyway, there's anyone who has some hints ? I think that maybe is a simple 
command, but I don't know how to do it.

Thanks in advance, and sorry if is a too banal question...

Giulio



More information about the Bioconductor mailing list