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
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.