>
> Hi Everyone,

I had been holding out on converting to rpy2 for a long time because my
application requires data in the form of dicts and lists of lists and rpy2
didn't seem to support this conversion.  However, rpy2 has theoretical speed
advantages by not converting to a python object at every call to the R
session.

I have adapted the rpy conversion methods to be used for rpy2 objects.  This
is provided in a separate conversion module named _conversion.

Example;

import rpy2.robjects as ro
import _conversion as co

iris = ro.r('iris')
co.convert(iris)

{'Sepal.Width':[...], 'Sepal.Length':[...],...}

Anyone interested in encouraged to get the module from Red-R.  At the moment
this can be obtained from SVN in the directory Trunk/canvas/redrrpy/rpy3.2

If anyone has any suggestions for modifications I'd be interested.  At the
moment I have only tested on Windows.

Kyle
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to