A user wrote me in private, asking me about some oddities on series
indexing via strings. I put together a little example:
<hansl>
nulldata 4
xs = normal(2,1)
setobs 1 2000 --time-series
# 1: this works
xs["2000"] = 3
# 2: this works too
a = sprintf("\"2000\"")
xs[@a] = 33
# 3: this doesn't
a = "2000"
xs[a] = 33
</hansl>
if assignments 1 and 2 work, one sees no reason why 3 shouldn't work too.
Or ami I missing something obvious?
-------------------------------------------------------
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
-------------------------------------------------------