define_labels | R Documentation |
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.
define_labels(pt, n_col, n_row)
## S3 method for class 'pivot_table'
define_labels(pt, n_col, n_row)
pt |
A |
n_col |
A number, quantity of columns containing pivot table labels. |
n_row |
A number, quantity of rows containing pivot table labels. |
A pivot_table
object.
pivot_table
Other pivot table definition functions:
get_page()
,
pivot_table()
,
set_page()
pt <- pt_ex |> define_labels(n_col = 2, n_row = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.