View source: R/tot_summarise.R
tot_summarise | R Documentation |
Add a total as a new level to the second grouping column. (e.g.: total rate in each industry and in all (2nd col) by years (1st col))
tot_summarise(x, ..., total_name = "Total")
x |
A grouped data.frame |
... |
Arguments pass to summarise(...) |
total_name |
Label for the total row. By default it is "Total" |
A grouped data.frame overview_print
iris |>
dplyr::group_by(Species) |>
tot_summarise(mean(Sepal.Length))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.