[Gretl-users] csv date parsing
Allin Cottrell
cottrell at wfu.edu
Thu Nov 20 16:29:40 EST 2008
On Thu, 20 Nov 2008, Sven Schreiber wrote:
> Am 19.11.2008 23:08, Allin Cottrell schrieb:
> > On Wed, 19 Nov 2008, Sven Schreiber wrote:
> >>
> >> Bottom line: IMHO gretl's import mechanism should also allow reverse
> >> chronological ordering, which at present apparently it doesn't.
> >
> > It doesn't, but it's easy enough to reverse the data in gretl (as
> > in the Cheatsheet chapter of the manual):
> >
> > genr sortkey = -obs
> > dataset sortby sortkey
>
> This by itself is already interesting, and although I had checked the
> relevant chapter of the guide, I didn't look in the cheatsheet chapter.
> Thanks for the pointer. One follow-up question here: would 'dataset
> sortby -obs' also work, or is the genr line necessary?
I think the genr line is necessary.
I've now done some work on auto-reversing backwards data. Not
guaranteed to work in all cases, but on some simple tests it seems
OK.
Allin.
More information about the Gretl-users
mailing list