Am 29.02.2020 um 14:19 schrieb Riccardo (Jack) Lucchetti:
On Sat, 29 Feb 2020, Artur Tarassow wrote:
> I am bit puzzled about the following behaviour. Even though, the
> sample is restricted to "t>3" obs. only, the strvals() function
> returns the distinct string-values of series x of the full data set.
> Is this intended, or a bug?
I would say that's intended, since the "strvals" are a property of the
data series, irrespective of the current sample selection.
Actually I agree with Artur here: In gretl AFAIK any function that
operates on a series is about the currently active part in-sample.
Otherwise your argument could also be made for 'values', but that has
the behavior that Artur expected:
<hansl>
open denmark
eval nelem(values(LRM)) # 55
smpl +10 +0
eval nelem(values(LRM)) # 45
</hansl>
cheers
sven