[R] Formatting summary() output to a file

Rich Shepard r@hep@rd @end|ng |rom @pp|-eco@y@@com
Fri Jul 27 17:52:59 CEST 2018

On Fri, 27 Jul 2018, William Dunlap wrote:

> Try
>   cat(sep="\n", file=con, capture.output(summary(...)))
> capture.output(x) return character vector whose elements contain
> the lines of text that would have been printed by print(x).


   Thanks very much. I doubt my searches would have found capture.output().


More information about the R-help mailing list