powered by
The PivotCalculationGroup class is a container for multiple PivotCalculation objects.
PivotCalculationGroup
Object of R6Class with properties and methods that define a group of calculations.
R6Class
R6Class object.
parentPivot
Owning pivot table.
calculationGroupName
Calculation group unique name. Recommendation: Do not have spaces in this name.
For more complete explanations and examples please see the extensive vignettes supplied with this package.
new(...)
Create a new pivot calculation group, specifying the field values documented above.
isExistingCalculation(calculationName=NULL)
Check if a calculation exists with the specified name in this calculation group.
getCalculation(calculationName=NULL)
Get the calculation with the specified name.
defineCalculation(calculationName=NULL, caption=NULL, visible=TRUE, displayOrder=NULL, filters=NULL, format=NULL, dataName=NULL, type="summary", executionOrder=NULL, valueName=NULL, summariseExpression=NULL, calculationExpression=NULL, calculationFunction=NULL, basedOn=NULL, noDataValue=NULL, noDataCaption=NULL)
Create a new calculation. See the PivotCalculation class documentation for more details on the arguments.
PivotCalculation
asList()
Get a list representation of this calculation group.
asJSON()
Get a JSON representation of this calculation group.
asString()
Get a text representation of this calculation group.
# 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