PivotCalculationGroups | R Documentation |
The 'PivotCalculationGroups' class stores all of the calculation groups for a pivot table. Every pivot table has at least one pivot calculation group and this is sufficient for all regular pivot tables. Additional calculation groups are typically only created for irregular/custom pivot tables. See the "Irregular Layout" vignette for an example.
R6Class
object.
count
The number of calculation groups in the pivot table.
groups
A list containing the calculation groups in the pivot table.
defaultGroup
The default calculation group in the pivot table.
new()
Create a new 'PivotCalculationGroups' object.
PivotCalculationGroups$new(parentPivot)
parentPivot
The pivot table that this 'PivotCalculationGroups' instance belongs to.
A new 'PivotCalculationGroups' object.
isExistingCalculationGroup()
Check if a calculation group exists with the specified name.
PivotCalculationGroups$isExistingCalculationGroup(calculationGroupName = NULL)
calculationGroupName
The name of the calculation group.
'TRUE' if the calculation group already exists, 'FALSE' otherwise.
item()
Retrieve a calculation group by index.
PivotCalculationGroups$item(index)
index
An integer specifying the calculation group to retrieve.
The calculation group that exists at the specified index.
getCalculationGroup()
Retrieve a calculation group by name.
PivotCalculationGroups$getCalculationGroup(calculationGroupName = NULL)
calculationGroupName
The name of the calculation group to retrieve.
The calculation group with the specified name.
addCalculationGroup()
Create a new calculation group.
PivotCalculationGroups$addCalculationGroup(calculationGroupName = NULL)
calculationGroupName
The name of the calculation group to create
The new calculation group.
asList()
Return the contents of this object as a list for debugging.
PivotCalculationGroups$asList()
A list of various object properties.
asJSON()
Return the contents of this object as JSON for debugging.
PivotCalculationGroups$asJSON()
A JSON representation of various object properties.
asString()
Return a representation of this object as a character value.
PivotCalculationGroups$asString(seperator = ", ")
seperator
A character value used when concatenating the text representations of different calculation groups.
A character summary of various object properties.
clone()
The objects of this class are cloneable with this method.
PivotCalculationGroups$clone(deep = FALSE)
deep
Whether to make a deep clone.
# This class should only be created by the pivot table.
# It is not intended to be created outside of the pivot table.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.