[R] latex function with lm

Karl Ove Hufthammer karloh at mi.uib.no
Wed Jun 21 18:20:32 CEST 2006


Erin Hodgess skreiv:

> However, I have a new question regarding that function:
> is there an option for summary(lm(y~x)), please?  There are
> options for different types of objects, but I didn't see one
> for that.  Maybe I just missed it.

FWIW: I find that the following works fairly well for printing
the table part of summary.lm:

library(Hmisc)
library(xtable)
latex(xtable(l), booktabs=TRUE, digits=2)

-- 
Karl Ove Hufthammer



More information about the R-help mailing list