On Sat, Jan 26, 2013 at 11:08 AM, Allin Cottrell <cottrell(a)wfu.edu> wrote:
On Sat, 26 Jan 2013, Skipper Seabold wrote:
> Curious what level of integration `foreign` provides. This is the first
> I've heard of it.
See part III of the Gretl User's Guide for details on
interacting with R, Ox, Octave and Stata via the "foreign"
mechanism.
> Is the idea that you want to put gretl data into a numpy
> array, do some operation in Python, and then move the results back to a
> gretl data structure?
I presume that's the sort of thing people would want to do.
> NumPy provides a C-API, so you wouldn't actually have to
> write any Python code to make the data ferrying possible.
In relation to the other instances of "foreign" support, the
"natural" way of supporting Python would be to write a few I/O
functions in Python (as we've done for R and Octave). But
using the NumPy C-API would be another possibility.
Thanks for the pointers. Will have a look at the R code.
Skipper