On Wed, Jan 2, 2013 at 3:20 AM, oneswarm1988 <oneswarm1...@gmail.com> wrote:

> **
> hello everyone:
>
> *I wonder if there is a method that could export the robjects created
> from python to  R , so that I can use the  robjects  directly in R code .*
>
> for example : df= DataFrame(xx) is a data frame created in python , and I
> wish make it public in  embedded R   , so I can use use pure R code to
> analysis .
>
> my R code goes like these " .... function(df)...." (operation on data
> totally in R)
> I try to use r instance to parse and evaluate the code .
> *but the df data.frame can not be found in R workspace.* (in fact it is
> there, but it is kind of "unregistered" and protected from the garbage
> collection. )
>
>
>
> *Is it possible to  "registered " the "df" variable and make it public?
> *
> (without using robjects.r to create variable )
>
> I think this will be a quite useful features.
> cause it separates the preparation of data in python   and   statistical
> analysis in R  and could easily get result into python for further use.
> and it will greatly boost the efficiency of users who are familiar with
> python and R both. (they need not to learn other class like Formula and so
> on.
>
>
I don't have any experience with this, but I remember seeing this section
of documentation. You might find it useful:
 http://pandas.pydata.org/pandas-docs/stable/r_interface.html

Hope that helps,
-paul
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to