Re: [Rpy] Printing in R format

2007-09-07 Thread Gregory Warnes
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

Re: [Rpy] Printing in R format

2007-09-07 Thread Peter (RPy List)
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

[Rpy] Printing in R format

2007-09-06 Thread David Marks
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 in R. Here's the R version: > y =