On Sat, 26 Dec 2020, Sven Schreiber wrote:
Am 26.12.2020 um 17:05 schrieb Artur Bala:
> Le sam. 26 déc. 2020 à 15:03, Sven Schreiber <svetosch(a)gmx.net
> <mailto:svetosch@gmx.net>> a écrit :
>
> Am 24.12.2020 um 10:56 schrieb Riccardo (Jack) Lucchetti:
> > On Wed, 23 Dec 2020, Artur Bala wrote:
> >
> >> Oh, that’s good!!! Probably not very suggestive but pretty fair
> >> though :)
> >
> > This one's a bit more sophisticated. Perhaps we could add this to
> the
> > "extra" package?
> >
>
> I'm sorry, can you repeat again what's the problem that needs to be
> solved by this code?
>
>
> Hi Sven,
> The initial problem was to print out "m" greatest values of a series in
> an descending order.
Right, sorry, I thought I was missing something. In the GUI this is
actually trivial in the sense that you can even sort a time series there
in the "show values" window. But in the CLI of course one doesn't want
to apply "dataset sortby" to a time series!
No, but what about this? (Sorry if I'm missing the point or
repeating what has been said already.)
<hansl>
open AWM
# show biggest 5 values
eval dsort({GCR_YER})[1:5]
</hansl>
Coming back to your original worry about print with the --range
option,
indeed it looks like a bug to me. (I also observe that "print ...
--range=x:y" doesn't honor the x and y values if the option --byobs is
_absent_.)
OK, I suppose that should work without --byobs.
Allin