[R] personalize regression printing?

Mark Wardle mark at wardle.org
Thu Mar 22 23:18:29 CET 2007


ivo welch wrote:
> dear R experts:
> 
> I am often struggling with a desire of wanting to change the basic
> output that R prints.
> 
> For example, a year ago, I wanted to add the mean to the summary()
> statement, and eventually got help from friendly souls who showed me
> how to copy the summary() routine and then modify it.
> ...

If "m1" is the result from lm(...)
Have you seen str(m1), and str(summary(m1))? One can extract any results
and present them in any fashion in a custom function.

Is there a specific reason you wish to override the summary() function:
why can't you just create your own custom summary function (my.summary()?

Best wishes,

Mark
--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK



More information about the R-help mailing list