define_labels: Define the quantity of rows and columns that contain labels

View source: R/pivot_table.R

define_labelsR Documentation

Define the quantity of rows and columns that contain labels

Description

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 class '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)


flattabler documentation built on Sept. 15, 2023, 1:06 a.m.