Re: [Rpy] RHOMES - How to set it before install?

2014-04-16 Thread Arnaldo Russo
4-04-14 11:38 GMT-03:00 Arnaldo Russo : > Dear Rpy users, > > I know this is a recurrent issue, but I didn't find the answer in the web > or here. > > How could I install rpy(1.03)? > I have my R (2.15.1) at /opt/R-2.15.1/ > I tryied to export > $ RHOMES=/opt/R

[Rpy] RHOMES - How to set it before install?

2014-04-14 Thread Arnaldo Russo
Dear Rpy users, I know this is a recurrent issue, but I didn't find the answer in the web or here. How could I install rpy(1.03)? I have my R (2.15.1) at /opt/R-2.15.1/ I tryied to export $ RHOMES=/opt/R-2.15.1 $ export RHOMES After python setup.py install, comes the error: RHOMES= ['/opt/R-2.1

[Rpy] rpy assign np.nan (na.omit)

2013-10-17 Thread Arnaldo Russo
Hi rpy users! I'm trying to export some variables to R environment through rpy, arrays containing np.nan. I want omit these values inside R, but I get an error doing this. import numpy as np from rpy import r a = np.array([1,2,3,4,5,np.nan, 7, 8, np.nan, 9,10]) r.assign("a",a) r('b <- na.omit(a

Re: [Rpy] From matrices to data.frames and vice versa

2011-11-25 Thread Arnaldo Russo
Hi Luca! thats a good idea. If you could give feedback over yours code improvement, I'll be glad. It's a possibility with data.matrix Cheers, Arnaldo. *Arnaldo D'Amaral Pereira Granja Russo* Lab. de Estudos dos Oceanos e Clima Instituto de Oceanografia Universidade Federal do Rio Grande e-mai