tot_summarise: tot_summarise

View source: R/tot_summarise.R

tot_summariseR Documentation

tot_summarise

Description

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))

Usage

tot_summarise(x, ..., total_name = "Total")

Arguments

x

A grouped data.frame

...

Arguments pass to summarise(...)

total_name

Label for the total row. By default it is "Total"

Value

A grouped data.frame overview_print

Examples

iris |>
 dplyr::group_by(Species) |>
 tot_summarise(mean(Sepal.Length))


MarcellGranat/granatlib documentation built on July 9, 2023, 6:08 a.m.