[Rpy] how to cite RPy

2009-04-22 Thread Simone Gabbriellini
Dear List, is there a common form to cite RPy? I would like to do it in my PhD dissertation. many thanks, Simone Gabbriellini Department of Political and Social Sciences University of Pisa -- Stay on top of everything

Re: [Rpy] how to pass a python object to R

2009-01-15 Thread Simone Gabbriellini
Dear List, sorry, but it's me again, because I still cannot figure out how to do this thing... I have my matrix in R as a numpy.array, everything is ok: In [35]: mymatrixR Out[35]: now I want to put mymatrixR inside the R object QAP, something like QAPset[,,1]<-mymatrixR if I simply do: rob

Re: [Rpy] how to pass a python object to R

2009-01-15 Thread Simone Gabbriellini
ape(mymatrixNARRAY) > > > Cheers > Oliver > > > "Simone Gabbriellini" wrote on 15.01.2009 > 10:07:36: > >> ... if I convert the matrix into array I have this new error:

Re: [Rpy] how to pass a python object to R

2009-01-15 Thread Simone Gabbriellini
t;>>> import rpy2.robjects as ro > >>>> import rpy2.robjects.numpy2ri > >>>> bR = ro.conversion.py2ri(bb) > >>>> bR > > >>>> print bR > [,1] [,2] [,3] > > [1,] NA NA NA > > [2,] NA NA NA > [code END] > &

Re: [Rpy] how to pass a python object to R

2009-01-15 Thread Simone Gabbriellini
re is something like r.assign('ROBJECT', >> > PYTHONOBJECT) in rpy2... >> >> http://rpy.sourceforge.net/rpy2/doc/html/robjects.html? >> highlight=assign#environments >> >> Or "assign" as you write above: >> r.assign("foo"

Re: [Rpy] how to pass a python object to R

2009-01-14 Thread Simone Gabbriellini
I would like to know if there is something like r.assign('ROBJECT', PYTHONOBJECT) in rpy2... I don't want to use R function to evaluate an object IN Python, I want to assign a matrix made in python to an R object... simone 2009/1/14 Simone Gabbriellini : > [so sorry but I jus

[Rpy] how to pass a python object to R

2009-01-14 Thread Simone Gabbriellini
lone is sufficient to switch an automatic conversion of numpy objects into rpy2 objects." should I do something else? thank you, simone 2009/1/14 Laurent Gautier : > Something like this > http://rpy.sourceforge.net/rpy2/doc/html/numpy.html?highlight=numpy > ? > > > > S

[Rpy] how to pass a python object to R

2009-01-14 Thread Simone Gabbriellini
dear List, is it possible to pass a matrix I've built in python to R via rpy2? I'm sure I'm blind, but I cannot find example about how to pass object from python to r, while I see how to pass object from r to python... best regards, Simo