Hi,
I think I once did something similar using matrices. If my memory still
holds I proceeded like this
Let's say x(1) to x(k1) are the initial variables. I created a matrix M1
with the k2 tunned data and M2 (string) with tunned series names. Then I
added M2's data as (k1+1) to (k1+k2) series and finally deleted (it can be
done manually or by script) the 1 to k1 initial series.
Hope it helps,
Best,
Artur
Le mer. 30 oct. 2019 à 16:12, Sven Schreiber <svetosch(a)gmx.net> a écrit :
Am 30.10.2019 um 16:07 schrieb Marcin Błażejowski:
On 30.10.2019 15:46, Sven Schreiber wrote:
Am 30.10.2019 um 10:24 schrieb Marcin Błażejowski:
Hi,
is it possible to change the ID number of given variable via script?
Hi Marcin, I don't think so (in general, without deleting other data),
because they are contiguous numbers used for indexing. Why do you want
to do that? Series names or named lists should typically be all you
need. (in theory)
It's tough to explain, but in short: we have database with houndrets of
series retrived from dbnomics, but after downloading we need to tune some
of them (interpolation, filtering and so on). We want to have a tunned
series next the original one, but all tunning staff we want to run *after*
downloading the whole database. So, setting variable ID via script would
help us.
I see -- I guess I would recommend to use additional datafile files
('store' command) and/or database files to group the related variables
together. If in the end you want to have them all in one file, read them
into a fresh file in the wanted order.
cheers
sven
_______________________________________________
Gretl-users mailing list -- gretl-users(a)gretlml.univpm.it
To unsubscribe send an email to gretl-users-leave(a)gretlml.univpm.it
Website:
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/