[Gretl-devel] Gretl and R integration

Riccardo (Jack) Lucchetti r.lucchetti at univpm.it
Sat May 24 17:49:13 EDT 2008


While we're on this: I just committed a few changes, mostly cosmetic, to 
the "export from R" machine:

1) the function gretl_export and the string gretl_dotdir were renamed to 
gretl.export and gretl.dotdir. I'm no R export, but it looks like more 
polite to use the dot rather than the underscore in R-land.

2) we had a naming problem when exporting a time-seried object with just 
one variable; now fixed (a bit clumsily, but as I said I'm no R expert).

We have an open problem: if some sort of subsampling is in effect on the 
gretl side, mostl likely the append mechanism won't work. This is due to 
the fact that I haven't been able to figure out how to stuff into the csv 
file row labels in a format that that gretl can digest, so I removed row 
labels altogether. An alternative possibility would be to intervene on the 
gretl side: in fact, the script below (which has nothing to do with R 
interaction _per se_) won't work

<script>
 	nulldata 10
 	x = normal()
 	smpl +1 -1
 	store @dotdir/foo.csv
 	delete x
 	append @dotdir/foo.csv
</script>

unless, of course, you get rid of the "smpl" command on line 3. I don't 
know if this is actually a problem. It certainly makes things more 
difficult when it comes to R interaction.


Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche

r.lucchetti at univpm.it
http://www.econ.univpm.it/lucchetti


More information about the Gretl-devel mailing list