top_n_nested | R Documentation |
Select top n rows in each group, ordered by wt within a nested dataframe
top_n_nested(df, n = 2, wt)
df |
A nested dataframe |
n |
Number of rows to return |
wt |
The variable to use for ordering |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.