Hello.

I've got a problem with Python to R conversion on RPY.

Suppose I create a Phython list, and then assign it to a R variable:

bar=list(something)
r.assign("foo", bar)

Then I need to do the equivalen to this in R syntax:

> barlow = bar[bar<somevalue]

i.e, I want to use a logical vector.

With RPY in Python this doesn't work:

r.assign("barlow", r.bar[r.bar<somevalue])

It seems that the Python interpreter evaluates de logical _expression_ and so I don't get the expected behaviour.

Does anyone have some hint about this?

Thanks.

Felipe.



LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to