Am 03.01.2019 um 03:04 schrieb Cottrell, Allin:
On Wed, Jan 2, 2019 at 1:50 PM Frederik.Schaff(a)ruhr-uni-bochum.de
<Frederik.Schaff(a)ruhr-uni-bochum.de> wrote:
>
> Happy new year!
>
> Is there a recommended way to automatically (i.e., in a script) save the
automatically generated string-table to a) an icon in the session b) a file in the
(script’s) working directory? Perhaps via an optional command to ‘open’ ?
Hi, but what do you need the string table for? I find that chapter 15 of
the guide explains how to see the numeric codes for the strings (print
city --byobs --numeric) and that you can access them apparently as a
vector with curly braces ({city}).
From that you can re-build your string table if needed. Also I see in
that chapter that if you copy the string series you get the numeric
codes (only) in the new series (series citycodes = city).
And finally there's the strvals() function which retrieves all the
string values in a series and puts them in a strings array.
Note that ten minutes ago I didn't know any of these things. I just
searched for "string table" in the user guide. I'm glad you asked the
question so I could learn a new aspect of gretl, so I'm not saying you
shouldn't have asked. I think such questions are perfectly OK. I just
want to point out (or repeat) that the documentation we have is really
in good shape.
cheers,
sven