Fills missing values in row and column labels for a pivot table. By default,
columns are filled down and rows are filled right.
Usage
fill_labels(pt, down, right)
# S3 method for pivot_table
fill_labels(pt, down = TRUE, right = TRUE)
Value
A pivot_table object.
Arguments
pt
A pivot_table object.
down
A boolean, fill down.
right
A boolean, fill right.
Details
A pivot table should only contain label rows and columns, and an array of
values, usually numeric data. The row and column closest to the data array
are not filled (they must have data defined for each cell).
To correctly carry out this operation, the number of rows and columns that
contain labels must be defined, and the table must only contain the pivot
table rows and columns.