On Tue, 17 Dec 2019, Artur Tarassow wrote:
Hi,
(sorry for cross-posting Sven, Jack and Allin -- but I think this got missed
some days ago)
using latest git, I am bite puzzled why the returned series is not
string-values any more.
<hansl>
clear
set verbose off
function series foo (const string s)
strings S = defarray(s)
series ret = 1
stringify(ret, S)
print ret -o # series is string-valued
return ret
end function
nulldata 4
series ser = foo("A")
print ser -o # series includes numerical obs.
</hansl>
Please see section 15.4 of the Gretl User's Guide on string-valued
series. This limitation could maybe be relaxed somehow, but it is
documented and a workaround is given.
Allin