On Mon, 29 Mar 2021, Stefano wrote:
hello everybody,
I just noticed that in a gdt dataset the names of the variables imported from
a spreadsheet cannot be changed (error of command rename: "the variable x is
read-only"). Far enough, not much of an issue, but I am curious: what is the
rationale?
I suspect that some transformation must have taken place. For example, try
this:
<hansl>
nulldata 10
x = uniform()
logs x
rename x y
</hansl>
you get an error, because internally x is flagged as the "parent" of l_x.
At present, there is way to force renaming in cases such as this. Perhaps
we could add a --force option to the raname command. Allin?
-------------------------------------------------------
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
-------------------------------------------------------