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
datadata.frame
metaDatalist of information on
dataxColumnNamescharacter names of grouping variables
groupingColumnNamescharacter names of grouping variables
yColumnNamescharacter names of dependent variables (that are grouped)
aggregationInputsVectorlist of R6 class
AggregationInputobjectsaggregationFunctionsVectorlist of functions to use for aggregation
aggregationFunctionNamesvector of function names that will be used as variable name of the aggregation
aggregationUnitsVectorcharacter vector of units of aggregation output
aggregationDimensionsVectorcharacter vector of dimensions of aggregation output
dfHelperdata.frame of aggregated values
metaDataHelperlist 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
datadata.frame
metaDatalist of information on
dataxColumnNamescharacter names of grouping variables
groupingColumnNamescharacter names of grouping variables
yColumnNamescharacter names of dependent variables (that are grouped)
aggregationInputsVectorlist of R6 class
AggregationInputobjectsaggregationFunctionsVectorlist of functions to use for aggregation
aggregationFunctionNamesvector of function names that will be used as variable name of the aggregation
aggregationUnitsVectorcharacter vector of units of aggregation output
aggregationDimensionsVectorcharacter vector of dimensions of aggregation output