Hi David,
You need to use R's print function, rather than python's:
from rpy import *
data = {
"y":[1,2,3,4],
"x":[1,1,2,2]
}
set_default_mode(NO_CONVERSION)
lm = r.lm(r("y~x"),data)
summary_lm = r.summary(lm)
tmp = r.print_ (summary_lm)
Note the u
David Marks wrote:
> Hi,
>
> I'm just getting used to the rpy module and so far I think it's
> pretty great. One thing I haven't figured out though is how to print R
> formatting. Here's my exact problem. I want to print the "summary" of
> an lm object in the same format that it prints i