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 ______________________________________________ R-help@stat.math.ethz.ch 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.