Re: [R] Creating nice looking lists: how?

2007-09-28 Thread Ptit_Bleu
Hi, I don't know if it will help you but to retrieve the slope of lm(y~x), I use : coefficients(lm(y~x))[2] ([1] for the intercept) I should not tell this but It took me a long time to find this obvious thing. Have a nice week-end, Ptit Bleu.

Re: [R] Creating nice looking lists: how?

2007-09-28 Thread Charles C. Berry
On Fri, 28 Sep 2007, Sergey Goriatchev wrote: Hello, For my functions I want to create output similar in appearance to that of what you get when you print a summary of lm model: Residuals: Min1Q Median3Q Max -0.209209 -0.043133 0.001793 0.044105

Re: [R] Creating nice looking lists: how?

2007-09-28 Thread Katharine Mullen
The source code for print.summary.lm and summary.lm is in the file /src/library/stats/R/lm.R of the R source code, which you can download from CRAN if you don't have it already. The file lm.R is also at https://svn.r-project.org/R/trunk/src/library/stats/R/lm.R On Fri, 28 Sep 2007, Sergey