Let me point out a new feature in git and snapshots: you can now
create a string-valued series directly from an array of strings,
subject to the requirement that the length of the array matches
either the length of the dataset or the current sample range.
Here are two examples:
<hansl>
# string-valued series from scratch
nulldata 8
strings S = defarray("a", "b", "c", "b",
"a", "d", "b", "e")
series sx = S
series x = sx # numeric codes
print sx x --byobs
# convert observation markers to a series
open data4-10
markers --to-array=S
series state = S
print state --byobs
</hansl>
Allin
Show replies by thread