define_labels {flattabler} | R 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 |
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
Other pivot table definition functions:
get_page()
,
pivot_table()
,
set_page()
Examples
pt <- pt_ex |> define_labels(n_col = 2, n_row = 2)
[Package flattabler version 2.1.2 Index]