-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
featurea feature request or enhancementa feature request or enhancement
Milestone
Description
I use count(group) %>% top_n(10, -n) type-of-thing lots... Future me would prefer if I could use count(group) %>% btm_n(10, n) instead as it is more easily understood at a glance.
From ?top_n():
# Find 10 players with most games
require("Lahman")
tbl_df(Batting) %>%
group_by(playerID) %>%
tally(G) %>%
top_n(10)I wish for:
# to find the 10 players with least games
# currently
... %>% top_n(10, -n)
# wishful behaviour
... %>% btm_n(10, n)Or perhaps it is easier to just document examples of how you'd get the bottom n of something under top_n()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featurea feature request or enhancementa feature request or enhancement