On Fri, 22 Sep 2017, Allin Cottrell wrote:
So I presume that with current gretl git/snapshot my
"append" recipe should
work after all, provided one is working with a consistent set of Frederik's
data files (either all auto-corrected in gretl's manner, or all manually
corrected in an alternative but consistent manner).
It should be noted that with the file/string functions we've been adding
over time it is entirely possible to pre-scan the header of a CSV file to
pre-parse the variable names if necessary.
... which brings me to a something I've been thinking about recently while
working in R: they have this nice head() function (and tail(), for that
matter) which can be handy sometimes. How would you like a --head option
to the "print" command? Or maybe, a little function for the extra package,
like
<hansl>
function void head(list X, int n[0::10])
outfile buf --buffer
print X --byobs
outfile --close
l = ""
i = -3
loop while getline(buf, l) && i<n --quiet
printf "%s\n", l
i++
endloop
end function
</hansl>
(Of course the above would be neater to handle via matrices, but then you
have NAs and strings to take care of...)
-------------------------------------------------------
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
-------------------------------------------------------