Open moodymudskipper opened 4 years ago
for the same price let's have bottom
We can have a 2nd argument named n
and a third argument named pct
, they can't be given at the same time.
Would be nice to have another argument for corner cases, what if we have 2 maxima ? we can take inspiration of different ordering algos.
top_n
is a row selection feature, so it could be a special function to be used in i. It would work with the "along" notation too. dplyr puts "n" argument first, and variable is optional, I think I prefer to have the variable first and n defaulting to 1.