Re: [Rpy] build an R DataFrame from a python dictionary in Rpy2

2008-10-16 Thread laurent
On Thu, 2008-10-16 at 10:55 -0400, laurent oget wrote: > In Rpy 1 i c can do > > >>> import rpy > >>> d=dict(x=[1,2],y=[2,3]) > >>> rpy.set_default_mode(rpy.NO_CONVERSION) > >>> df=rpy.r.as_data_frame(d) > >>> df > > > and i can then use this dataframe as an argument for lm > > Is there any w

[Rpy] SF.net SVN: rpy:[660] branches/rpy_nextgen

2008-10-16 Thread lgautier
Revision: 660 http://rpy.svn.sourceforge.net/rpy/?rev=660&view=rev Author: lgautier Date: 2008-10-16 17:50:41 + (Thu, 16 Oct 2008) Log Message: --- Compile under win32 (well the ones that were not compiling) Modified Paths: -- branches/rpy_nextgen/NEWS

[Rpy] build an R DataFrame from a python dictionary in Rpy2

2008-10-16 Thread laurent oget
In Rpy 1 i c can do >>> import rpy >>> d=dict(x=[1,2],y=[2,3]) >>> rpy.set_default_mode(rpy.NO_CONVERSION) >>> df=rpy.r.as_data_frame(d) >>> df and i can then use this dataframe as an argument for lm Is there any way to do something similar in rpy2? For the moment the only thing I have found is