Am 20.06.21 um 00:36 schrieb Sven Schreiber:
Hi,
for the first thing, here's a minimal example:
<hansl>
function void checko(list L)
list L print # d_LRY d_LRM (expected result)
varlist # weird: 0) const 5) [masked] 6) [masked]
end function
open denmark
list L = LRY LRM
checko(diff(L))
</hansl>
OK, then in my use case I'm also using 'append' (inside the function) to
load data from a csv file. The first part of that csv file contains the
same data as in the list L, with the same series names. However,
afterwards it seems that for example d_LRY appears twice in the dataset
- at least it's the result of an empty "print". ("varlist"
doesn't show
duplicates, but again has these [masked] entries as before with large
series ID# gaps.)
I also recently saw those "[masked]" series names when appending new
columns which were not present in already active dataset.
However, this toy using cross-sectional data works as intended, I guess
<hansl>
set verbose off
nulldata 3
series foo1 = normal()
series foo2 = normal()
print dataset -o
# Generate new dataset
matrix data_tobe_appended = mnormal(3,3)
cnameset(data_tobe_appended, "foo1, app1, app2")
# Store matrix as dataset
string fname = "to_be_appendex.csv"
store @fname --matrix=data_tobe_appended
eval readfile(fname)
append @fname
print dataset -o
</hansl>
Artur