R6 class to split a data.frame data into subsets defined by unique combinations of elements
in the columns xColumnNames
and groupingColumnNames
.
Applies functions defined in aggregationFunctionsVector
to column yColumnNames.
Returns a list of data.frame, one data.frame for each function listed in aggregationFunctionsVector
.
Each data.frame in list element is named after the function's corresponding string in aggregationFunctionNames
.
The summary statistic column name in each data.frame is the same as the name of the data.frame in the returned list.
Public fields
data
data.frame
metaData
list of information on
data
xColumnNames
character names of grouping variables
groupingColumnNames
character names of grouping variables
yColumnNames
character names of dependent variables (that are grouped)
aggregationInputsVector
list of R6 class
AggregationInput
objectsaggregationFunctionsVector
list of functions to use for aggregation
aggregationFunctionNames
vector of function names that will be used as variable name of the aggregation
aggregationUnitsVector
character vector of units of aggregation output
aggregationDimensionsVector
character vector of dimensions of aggregation output
dfHelper
data.frame of aggregated values
metaDataHelper
list of information on
dfHelper
Methods
Method new()
Create a new AggregationSummary
object
Usage
AggregationSummary$new(
data,
metaData = NULL,
xColumnNames = NULL,
groupingColumnNames = NULL,
yColumnNames = NULL,
aggregationInputsVector = NULL,
aggregationFunctionsVector = NULL,
aggregationFunctionNames = NULL,
aggregationUnitsVector = NULL,
aggregationDimensionsVector = NULL
)
Arguments
data
data.frame
metaData
list of information on
data
xColumnNames
character names of grouping variables
groupingColumnNames
character names of grouping variables
yColumnNames
character names of dependent variables (that are grouped)
aggregationInputsVector
list of R6 class
AggregationInput
objectsaggregationFunctionsVector
list of functions to use for aggregation
aggregationFunctionNames
vector of function names that will be used as variable name of the aggregation
aggregationUnitsVector
character vector of units of aggregation output
aggregationDimensionsVector
character vector of dimensions of aggregation output