Re: [Rpy] Getting Python objects out of rpy2, rnumpy

2009-07-27 Thread Laurent Gautier
It will likely return something inaccurate with the following import rpy2.robjects as ro my_list = ro.r('list(a=1, b=2, a="a", c=3, a=TRUE)') L. Jon Olav Vik wrote: > I have had great use of rpy2, especially with the rnumpy and ipy_rnumpy > wrappers. One useful feature of rnumpy [1] is

[Rpy] Getting Python objects out of rpy2, rnumpy

2009-07-27 Thread Jon Olav Vik
I have had great use of rpy2, especially with the rnumpy and ipy_rnumpy wrappers. One useful feature of rnumpy [1] is autoconversion from Python to R objects, which will also deal with nested lists/dicts. Is there an equally convenient way of getting a Python dict or list out of an R list, poss