The PivotCell class represents a cell in the body of a pivot table (i.e. not a row/column heading, rather a cell typically containing a numerical value).
PivotCellObject of R6Class with properties and methods that
define a single pivot table cell
R6Class object.
parentPivotOwning pivot table.
rowNumberThe row number of the cell. 1 = the first (i.e. top) data row.
columnNumberThe column number of the cell. 1 = the first (i.e. leftmost) data column.
rowLeafGroupThe row data group linked to this row.
columnLeafGroupThe column data group linked to this column.
calculationNameThe name of the calculation that is displayed in the cell.
calculationGroupNameThe name of the calculation group that owns the above calculation.
rowFiltersThe data filters applied to this cell from the row headings.
columnFiltersThe data filters applied to this cell from the column headings.
rowColFiltersThe data filters applied to this cell from both the row and column headings.
calculationFiltersThe data filters applied to this cell from the calculation definition.
workingDataThe data filters and batchNames used applied when running calculations (including the filters needed for base calculations when calculation type="calculation").
evaluationFiltersThe final and actual data filters used in the calculation of the cell value (e.g. custom calculation functions can override the working filters).
isTotalWhether this cell is a total cell.
rawValueThe numerical calculation result.
formattedValueThe formatted calculation result (i.e. character data type).
baseStyleNameThe name of the style applied to this cell (a character value). The style must exist in the PivotStyles object associated with the PivotTable.
styleA PivotStyle object that can apply overrides to the base style for this cell.
For more complete explanations and examples please see the extensive vignettes supplied with this package.
new(...)Create a new pivot table cell, specifying the field values documented above.
getCopy())Get a copy of this cell.
asList())Get a list representation of this cell
asJSON()Get a JSON representation of this cell
# NOT RUN {
# This class should only be created by the pivot table.
# It is not intended to be created outside of the pivot table.
# }
Run the code above in your browser using DataLab