get_row_group_by | R Documentation |
Fetch one row from each grouped by group
get_row_group_by(dt, group_by_cols, fetch_row)
dt |
input data table |
group_by_cols |
group by columns |
fetch_row |
first means to fetch first row and last means to fetch last row |
grouped by data table
data("dt_groups") dataMojo::get_row_group_by(dt_groups, group_by_cols = c("group1", "group2"), fetch_row = "first")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.