[R] printing a dataframe summary to disk

Paul Hiemstra p.hiemstra at geo.uu.nl
Tue Aug 18 17:05:58 CEST 2009


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!
>
>
> ------------------------
> Philip A. Viton
> City Planning, Ohio State University
> 275 West Woodruff Avenue, Columbus OH 43210
> viton.1 at osu.edu
>
> ______________________________________________
> R-help at 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.
Hi,

Does:

write.table(summary(your_df), "yourfile")

give you something you like? What is the reason that you want to write 
the summary to a file?

cheers,
Paul

-- 
Drs. Paul Hiemstra
Department of Physical Geography
Faculty of Geosciences
University of Utrecht
Heidelberglaan 2
P.O. Box 80.115
3508 TC Utrecht
Phone:  +3130 274 3113 Mon-Tue
Phone:  +3130 253 5773 Wed-Fri
http://intamap.geo.uu.nl/~paul




More information about the R-help mailing list