View source: R/count_bindings.R
set_total_row_label | R Documentation |
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)
e |
A |
total_row_label |
A character to label the total row |
The modified count_layer
object
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.