total_label parameter to grouping_sets(), with_rollup(), and with_cube()
NULL keeps NA)with_rollup(total_label = "Total")
total_on_top parameter to grouping_sets(), with_rollup(), and with_cube()
TRUE, moves total/subtotal rows to the top of the result (default: FALSE)with_cube(total_label = "Grand Total", total_on_top = TRUE)
summarize_rollup() to handle custom total labels and positioning