andreas.karlsson(a)ltv.se schrieb:
my_gretl(a)yahoo.fr @ INTERNET wrote 2007-05-28 09:06:08 :
> Would it be possible please, to save a matrix as a .gdt file
> for further use?
> When I saved a matrix as .txt file and tried to import it into
> Gretl, the result was a really mismatched and unusable file.
>
> Best,
> Artur
>
I do agree that it would be useful to have the possibility to save a matrix
as a .gdt file for further use.
In addition to this, it would also be great to have the possibility to
export a matrix in CSV, GNU R, Octave, JMulTi or PcGive file format.
AFAIK .gdt is for data, not for plain matrices. But I also agree that it
would be useful to be able to save matrices in gretls native matrix
(XML) format. (Then you can load them again with the "include" command.)
Note that when saving a matrix to .txt with gretl, it seems the only
"problematic" part of the file is the header line like "mymatrix
(2x2)".
Otherwise it's an almost perfect csv file. So as a workaround you could
comment out or delete the header.
If you have an urgent need to save to gretl's xml format, I could
provide a script to do that, I guess.
But what do you really want to do? If your matrices really represent
data series / variables, I think you can convert them to series via a
console command (check the user guide) and then normally save them as
series to a .gdt file.
HTH, sven