Am 12.03.2024 um 16:57 schrieb Artur T.:
...
as this does not work and fails:
<hansl>
print -o --range=($nobs-5):
</hansl>
Is my analysis correct or does there exist any other clever way?
Well, Artur, I actually read the documentation for the print command,
which suggested:
print --byobs --range=-5:
A slight inconsistency of this negative-value convention is that the
meaning is different for matrix indexation: there a negative index means
to omit the respective rows/cols, so this is something to be aware of.
(example I(2)[-2,] yields the first row only)
I've also noticed that the "-o" short form for "--byobs" isn't
documented, and personally I would recommend to stick with the more
obvious abbreviation "--b" (note the double-dash), but that's of course
a matter of taste.
But --slightly OT-- I think that many documentation texts in the command
reference would benefit from a less "prosaic" and more "bullet-pointy"
structured style, it would make it easier to quickly find stuff without
reading the entire text.
cheers
sven