Why not use sink()?

On Thu, 28 Oct 2004, Sean Davis wrote:

> I have a table (output from table(factor1,factor2)).  I would like to 
> use write.table to output that table to a file.  However, it seems that 
> as.data.frame converts such a table to three columns, Var1, Var2, and 
> Freq rather than converting to the data.frame with equivalent numbers 
> of rows and columns.  I can use write.matrix from the MASS package, but 
> then I get no rownames.  Any hints here?

-- 
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to