Skip to content
Back to formatted view

Raw Message

Message-ID: <9fd2371d0512021421jdcbf385r@mail.gmail.com>
Date: 2005-12-02T22:21:40Z
From: José Abílio Matos
Subject: what is best for scripting?
In-Reply-To: <4390C633.1000503@metrak.com>

On 02/12/05, paul sorenson <sourceforge at metrak.com> wrote:
>
> I usually dump data from Python to R in CSV format.  I call R scripts
> from Python and about the only trick I use here is to read in an R
> script template and perform string variable expansion (interpolation in
> Perl) before sending it to an R process.  See attached for example.  For
> various reasons I have not used the R-Python bindings.

  In this case I prefer to use rpy (look for it in sourceforge), it
allow to call R directly from python,
with the main advantage that the resulting objects are really python
objects, and vice-versa
calling R with python objects will convert them to R objects.

 It works quite well for me. :-)

> cheers