Re: [Rpy] Result rpy2.rinterface.SexpVector

2010-10-05 Thread BB
> > Use the method .rx2() > http://rpy.sourceforge.net/rpy2/doc-2.2/html/vector.html?highlight=rx2#extracting-r-style > Hi, I used rx2(), passing the name of a column, or index, I seem to get back a vector of size 1. My test code along with data is here http://dl.dropbox.com/u/1570604/radon.zip

Re: [Rpy] Result rpy2.rinterface.SexpVector

2010-10-05 Thread Laurent Gautier
Use the method .rx2() http://rpy.sourceforge.net/rpy2/doc-2.2/html/vector.html?highlight=rx2#extracting-r-style There is a section on S4 objects in the documentation that happen to use lme4 as an example. http://rpy.sourceforge.net/rpy2/doc-2.2/html/robjects_oop.html?highlight=lme4#s4-objects

Re: [Rpy] Result rpy2.rinterface.SexpVector

2010-10-04 Thread BB
I realized I can have R seperate out the result. So I have robjects.r('M0 = lmer (y ~ 1 + (1 | county))') res = robjects.r('coef(M0)') coef function returns the detailed result. From this print res.rclass print res.r_repr() I get structure(list(county = structure(list("(Intercept)" = c(1

Re: [Rpy] Result rpy2.rinterface.SexpVector

2010-10-04 Thread BB
Also I do print res.r_repr(), I get -- Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achi

[Rpy] Result rpy2.rinterface.SexpVector

2010-10-04 Thread BB
I was able to call lmer using this: robjects.r.assign('y',y) robjects.r.assign('x',x) robjects.r.assign('county',county) res = robjects.r('lmer (y ~ 1 + (1 | county))') Printing res displays a nice summary. But I need all the information in the result object, res.rclass displays rpy2.rinter