

Hi,Yes, you can use all values within the object For example, data(airquality)
obj.lm <- summary(lm(Temp~Ozone, airquality))
names(obj.lm)
 [1] "call"          "terms"         "residuals"     "coefficients"  "aliased"       "sigma"        
 [7] "df"            "r.squared"     "adj.r.squared" "fstatistic"    "cov.unscaled"  "na.action"     >obj.lm$r.squared [1] 0.4877072 Then you have to manage the info to set the table as you want. I use latex() function from Hmisc package Best,
Jose 
 > From: tal.galili@gmail.com
> Date: Sun, 4 Dec 2011 16:57:51 +0200
> To: r-help@r-project.org
> Subject: [R] LaTeX output for summary.lm object - while displaying the information outside the table
> 
> This seemed to me to be basic, but I can't seem to find a solution online,
> so I wondered what I might be missing.
> 
> I wish to include the output of an lm summary object inside an Sweave
> (.Rnw) document. I can either output the summary.lm as is, or use the
> xtable/Hmisc packages (through xtable or latex commands).
> 
> Is there something like xtable that also gives the summary information
> which is available from outside the table? (
> 
> R2, F statistics etc...?)
> Thanks.
> 
> 
> ----------------Contact
> Details:-------------------------------------------------------
> Contact me: Tal.Galili@gmail.com |  972-52-7275845
> Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
> www.r-statistics.com (English)
> ----------------------------------------------------------------------------------------------
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help@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.
 		 	   		  
	[[alternative HTML version deleted]]

