Description Usage Arguments Examples
Control if the totals will display when printed
1 2 | pivot_totals(.data, include_column_totals = TRUE,
include_row_totals = TRUE)
|
.data |
A data.frame or a pivot_prep object |
include_column_totals |
Indicates if the column totals are included in the pivot table |
include_row_totals |
Indicates if the row totals are included in the pivot table |
1 2 3 4 | retail_orders %>%
pivot_rows(status, country) %>%
pivot_values(n()) %>%
pivot_totals(include_row_totals = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.