On Mon, 29 Mar 2021, Riccardo (Jack) Lucchetti wrote:
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
x = uniform()
rename x y
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?
Possibly, yes. But the recommended procedure would be to rename the
primary variable before creating transformations of it.