Returns a new data frame that aggregates the columns grouped by the specified vector.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public DataFrame<R1, C> AggregateBy<R1, T>(
IList<R1> groupingVector,
AggregatorGroup<T> aggregator
)
Public Function AggregateBy(Of R1, T) (
groupingVector As IList(Of R1),
aggregator As AggregatorGroup(Of T)
) As DataFrame(Of R1, C)
public:
generic<typename R1, typename T>
DataFrame<R1, C>^ AggregateBy(
IList<R1>^ groupingVector,
AggregatorGroup<T>^ aggregator
)
member AggregateBy :
groupingVector : IList<'R1> *
aggregator : AggregatorGroup<'T> -> DataFrame<'R1, 'C>
Parameters
- groupingVector
- Type: System.Collections.GenericIListR1
The vector that contains the group memberships. - aggregator
- Type: Extreme.DataAnalysisAggregatorGroupT
The aggregator to apply to each group.
Type Parameters
- R1
- The element type of the grouping vector.
- T
- The type of the result of the aggregator.
Return Value
Type:
DataFrameR1,
CA new data frame, with rows indexed by the unique elements
of
groupingVector,
and as values the result of applying
aggregator
to each group of each column.
Reference