powered by
The row label for a total row defaults to "Total", however this can be overriden using this function.
set_total_row_label(e, total_row_label)
The modified count_layer object
count_layer
A count_layer object
A character to label the total row
# Load in pipe library(magrittr) t <- tplyr_table(mtcars, gear) %>% add_layer( group_count(cyl) %>% add_total_row() %>% set_total_row_label("Total Cyl") ) build(t)
Run the code above in your browser using DataLab