Description Usage Arguments Examples
View source: R/pivot-default.R
Set a default to display totals for an R session
1 2 | pivot_default_totals(include_column_totals = TRUE,
include_row_totals = TRUE)
|
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 5 | pivot_default_totals(TRUE, TRUE)
retail_orders %>%
pivot_rows(status, country) %>%
pivot_values(n())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.