Re: [Rpy] rpy2: Conversion from RVector and RArray to Python Lists

2009-03-16 Thread Laurent Gautier
Mark Larsen wrote: > I'm taking the plunge and switching over to rpy2. While, Python to > RObjects seems straightforward, what about the reverse? It just depends of what you want the reverse to be, I suppose. > For example, I have a R function which returns a matrix. How can I get > this int

[Rpy] rpy2: Conversion from RVector and RArray to Python Lists

2009-03-16 Thread Mark Larsen
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