[Rpy] Installing RPY2-2.2.3 with R 2.13 and python 2.7 on XP

2011-10-05 Thread Hajas, Wayne
I'm trying to get RPY2 working with python 2.7. I downloaded the .tar file and extracted the installation directories. When I tried to run setup.py I got error messages (listed below). By the looks of things I am missing files or I am getting the wrong versions of files. Does anybody have ideas

[Rpy] How to specify na_rm=True?

2011-10-05 Thread William T. Martin
How do I specify na.rm=True to ignore NA vector values? The following code: import rpy2.robjects as ro import rpy2.rinterface as ri r=ro.r data=ro.FloatVector([10, 20, 30]) print(data) m=r.mean(data, na_rm=ri.TRUE) print(m) data_NA=ro.FloatVector([10, 20, 30, ro.NA_Real]) print(data_NA) m_NA=r.