On Mon, 2 Jan 2017, Sven Schreiber wrote:
Am 02.01.2017 um 18:13 schrieb Jan Tille:
> matrix r_test2={} set skip_missing off matrix
> r_test2={NA,0.31643,-0.11822,2.9720 ; NA, 0.96456,-0.58746,1.4570 ;
> NA, 0.79388,0.54611,-1.0222} print r_test2
OK, I see, it's the missings.
More precisely: The matrix saved by R (via gretl.export) represents the
missings as "NaN", while gretl seems to prefer "nan" (lowercase).
(also @Allin:) I manually changed all "NaN" to "nan" in the saved
file and
then gretl's mread() accepts it.
Jan, as a workaround for your case until this is fixed, could you somehow
restrict your data to have no missings already in gretl, before you call R,
then it should work.
Jan's example 2 runs fine on current git.
IIRC, Allin committed a few changes on the handling of NAs in mat files
shortly before Christmas.
Could you try the snapshot version?
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------