pivot_totals: Control if the totals will display when printed

Description Usage Arguments Examples

View source: R/pivot-verbs.R

Description

Control if the totals will display when printed

Usage

1
2
pivot_totals(.data, include_column_totals = TRUE,
  include_row_totals = TRUE)

Arguments

.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

Examples

1
2
3
4
retail_orders %>%
  pivot_rows(status, country) %>%
  pivot_values(n()) %>%
  pivot_totals(include_row_totals = FALSE)

edgararuiz/pivotable documentation built on Nov. 18, 2019, 7:49 a.m.