Skip to content
Prev 388622 / 398530 Next

Puzzled over "partial"

Hello,


First, your statement can be re-written as

sort(x,partial=p)[p]

since n - (n - p) is p. Second, you need to look at

?sort

And look at section "Arguments" subsection "partial", that should have the
details you're looking for. From what I understand, it guarantees that the
indices of "partial" will be sorted correctly, but all others won't, so
this saves time for things like "median". I hope this helps!
On Mon, Jul 26, 2021, 07:54 Nick Wray <nickmwray at gmail.com> wrote: