Am 01.03.20 um 07:43 schrieb Sven Schreiber:
Am 01.03.2020 um 02:10 schrieb Allin Cottrell:
> On Sat, 29 Feb 2020, Riccardo (Jack) Lucchetti wrote:
>
>> On Sat, 29 Feb 2020, Artur Tarassow wrote:
>>
>> I would say that's intended, since the "strvals" are a property of
the
>> data series, irrespective of the current sample selection.
>
> I agree with Jack. It's inherent that strvals() gives access to a
> property of an entire data series. If you have a use case for obtaining
> the set of strings associated with the values of a string variable over
> a particular sub-sample that can be done (left as an exercise, but not a
> terribly difficult one), but it's not the job of strvals().
Thanks for clarification of this.
OK, I'm noting that 'stringify' indeed also always seems
to work on the
entire series. Besides, 'firstobs' and 'lastobs' have an explicit switch
for that.
But I still think it's surprising, given the behavior of the majority of
gretl functions, so it should be documented, for example like in the
'obs' doc: "Note that the result is invariant to subsampling."
Good idea!
Best,
Artur