Skip to contents

Define the page information associated with a pivot table. Previously existing information is replaced by new information.

Usage

set_page(pt, row, col, page)

# S3 method for pivot_table
set_page(pt, row = 0, col = 0, page = "")

Arguments

pt

A pivot_table object.

row, col

A cell (row and column number), page information included in the table.

page

A string, page information.

Value

A pivot_table object.

Details

Each pivot table implements a report. The pivot table page represents the context of that report. It is useful when we work with several pivot tables with the same structure: for example, the page can allow us to differentiate their origin, date or author. This information is often included in the file name, sheet name, or a cell attached to the pivot table.

See also

pivot_table

Other pivot table definition functions: define_labels(), get_page(), pivot_table()

Examples


pt <- pt_ex |> set_page(1, 1)

pt <- pt_ex |> set_page(page = "M4")