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
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
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:
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 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"
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
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
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