Learn R Programming

flattabler (version 1.0.0)

new_pivot_table: pivot_table S3 class

Description

Internal low-level constructor that creates new objects with the correct structure.

Usage

new_pivot_table(
  df = data.frame(),
  page = vector("character"),
  n_col_labels = 0,
  n_row_labels = 0,
  n_extract = 0
)

Arguments

df

A data frame, contains one or more pivot tables.

page

A string, additional information associated with the pivot table.

n_col_labels

A number, number of columns containing pivot table labels.

n_row_labels

A number, number of rows containing pivot table labels.

n_extract

A number, number of new columns added to the table.

Value

A pivot_table object.