set_total_row_label: Set the label for the total row

View source: R/count_bindings.R

set_total_row_labelR Documentation

Set the label for the total row

Description

The row label for a total row defaults to "Total", however this can be overriden using this function.

Usage

set_total_row_label(e, total_row_label)

Arguments

e

A count_layer object

total_row_label

A character to label the total row

Value

The modified count_layer object

Examples

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

Tplyr documentation built on May 29, 2024, 10:37 a.m.