Hi,

On Aug 17, 2009, at 10:54 AM, Philip A. Viton wrote:

I'd like to write the summary of a dataframe to disk, so that it looks
essentially the same as what you'd see on screen; but I can't seem to do it. Can someone tell me how? Thanks!

Look at: ?write.table and friends

You can write the data.frame that way. If you're looking to serialize the result of a call to summary(my.data.frame) to a disk, just note that the summary function returns the summary as table (and doesn't simply print it to the terminal), so:

my.summary <- summary(some.data.frame)
write.table(my.summary, quote=FALSE, file="summary.txt")

-steve

--
Steve Lianoglou
Graduate Student: Computational Systems Biology
  |  Memorial Sloan-Kettering Cancer Center
  |  Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to