Skip to contents

A pivot table should only contain label rows and columns, and an array of values, usually numeric data. This function defines the quantity of rows and columns that contain labels.

Usage

define_labels(pt, n_col, n_row)

# S3 method for pivot_table
define_labels(pt, n_col, n_row)

Arguments

pt

A pivot_table object.

n_col

A number, quantity of columns containing pivot table labels.

n_row

A number, quantity of rows containing pivot table labels.

Value

A pivot_table object.

See also

pivot_table

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

Examples


pt <- pt_ex |> define_labels(n_col = 2, n_row = 2)