I'm taking the plunge and switching over to rpy2.  While, Python to RObjects
seems straightforward, what about the reverse?

For example, I have a R function which returns a matrix.  How can I get this
into a list of lists OR loop over each column (or row) pulling the vector
one at a time?  What's the most efficient way to take an RVector to a list?


This works -->

 [i for i in robjects.FloatVector([1,2,3,4])]

But seems inefficient for large structures.

Finally, (i swear last question).  How does rpy2 compare in terms of speed
to rpy?  I'm mostly interested in the conversion of data and the
initialization.

Thanks,
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to