to_pivottabler: Coerce to a pivottabler object

Description Usage Arguments Examples

View source: R/to-pivottabler.R

Description

Coerce to a pivottabler object

Usage

1
2
to_pivottabler(x, include_column_totals = NULL,
  include_row_totals = NULL)

Arguments

x

A pivot_prep or pivot_table 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
5
6
7
pt <- retail_orders %>%
  pivot_rows(status) %>%
  pivot_columns(country) %>%
  pivot_values(n()) %>%
  to_pivottabler()

pt$asMatrix()

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