A couple of days ago this was changed:
"Now varname() accepts either an ID number or a series itself."
Are you using the latest cvs/git version?
Artur
Am 01.03.2017 um 09:25 schrieb Schaff, Frederik:
> How about the "rename" command? ;)
>
>
That I should have seen by myself... thanks! And there I see "strsub", which
shall do the job if I can get the name of a variable...
Ok, so the following would be nice:
list alls = dataset
loop foreach i alls
string new = strsub(varname($i), "Utility", "U")
rename $i new
endloop
but it does not work, because varname (in my version) still needs an ID. When will the
recent updated that fixes this be pushed? I am using windows...
Many thanks!
_______________________________________________
Gretl-devel mailing list
Gretl-devel(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-devel