top_n_group | R Documentation |
Select top (or bottom) n rows for each group (by value)
top_n_group(df, n, wt, ...)
df |
A tibble to filter |
n |
number of rows to return for each group |
wt |
(Optional). The variable to use for ordering. If not specified, defaults to the last variable in the tbl. |
... |
Optional columns to group by |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.