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

James W. MacDonald jmacdon at med.umich.edu
Tue Nov 29 16:03:16 CET 2005


Giulio Di Giovanni wrote:
> 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))

See

?capture.output
or
?sink

HTH,

Jim


> 
>    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
> 
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor


-- 
James W. MacDonald
Affymetrix and cDNA Microarray Core
University of Michigan Cancer Center
1500 E. Medical Center Drive
7410 CCGC
Ann Arbor MI 48109
734-647-5623



More information about the Bioconductor mailing list