| firstby | R Documentation |
First row within each group
firstby(data, by, order = NULL)
data |
A data.frame. |
by |
Character vector of column names identifying groups or join keys. |
order |
Optional column(s) used to break ties before picking first/last rows. |
One row per group.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.