Click or drag to resize
SeriesModuleAggregateIntoK, T, TNewKey, R Method
Aggregates an ordered series using the method specified by `Aggregation<K>` and then applies the provided value selector `f` on each window or chunk to produce the result which is returned as a new series. A key for each window or chunk is selected using the specified `keySelector`. ## Parameters - `aggregation` - Specifies the aggregation method using `Aggregation<K>`. This is a discriminated union listing various chunking and windowing conditions. - `keySelector` - A function that is called on each chunk to obtain a key. - `f` - A value selector function that is called to aggregate each chunk or window. - `series` - The input series to be aggregated. [category:Grouping, windowing and chunking]

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public static Series<TNewKey, R> AggregateInto<K, T, TNewKey, R>(
	Aggregation<K> aggregation,
	FSharpFunc<DataSegment<Series<K, T>>, TNewKey> keySelector,
	FSharpFunc<DataSegment<Series<K, T>>, OptionalValue<R>> f,
	Series<K, T> series
)

Parameters

aggregation
Type: DeedleAggregationK

[Missing <param name="aggregation"/> documentation for "M:Deedle.SeriesModule.AggregateInto``4(Deedle.Aggregation{``0},Microsoft.FSharp.Core.FSharpFunc{Deedle.DataSegment{Deedle.Series{``0,``1}},``2},Microsoft.FSharp.Core.FSharpFunc{Deedle.DataSegment{Deedle.Series{``0,``1}},Deedle.OptionalValue{``3}},Deedle.Series{``0,``1})"]

keySelector
Type: Microsoft.FSharp.CoreFSharpFuncDataSegmentSeriesK, T, TNewKey

[Missing <param name="keySelector"/> documentation for "M:Deedle.SeriesModule.AggregateInto``4(Deedle.Aggregation{``0},Microsoft.FSharp.Core.FSharpFunc{Deedle.DataSegment{Deedle.Series{``0,``1}},``2},Microsoft.FSharp.Core.FSharpFunc{Deedle.DataSegment{Deedle.Series{``0,``1}},Deedle.OptionalValue{``3}},Deedle.Series{``0,``1})"]

f
Type: Microsoft.FSharp.CoreFSharpFuncDataSegmentSeriesK, T, OptionalValueR

[Missing <param name="f"/> documentation for "M:Deedle.SeriesModule.AggregateInto``4(Deedle.Aggregation{``0},Microsoft.FSharp.Core.FSharpFunc{Deedle.DataSegment{Deedle.Series{``0,``1}},``2},Microsoft.FSharp.Core.FSharpFunc{Deedle.DataSegment{Deedle.Series{``0,``1}},Deedle.OptionalValue{``3}},Deedle.Series{``0,``1})"]

series
Type: DeedleSeriesK, T

[Missing <param name="series"/> documentation for "M:Deedle.SeriesModule.AggregateInto``4(Deedle.Aggregation{``0},Microsoft.FSharp.Core.FSharpFunc{Deedle.DataSegment{Deedle.Series{``0,``1}},``2},Microsoft.FSharp.Core.FSharpFunc{Deedle.DataSegment{Deedle.Series{``0,``1}},Deedle.OptionalValue{``3}},Deedle.Series{``0,``1})"]

Type Parameters

K
T
TNewKey
R

Return Value

Type: SeriesTNewKey, R

[Missing <returns> documentation for "M:Deedle.SeriesModule.AggregateInto``4(Deedle.Aggregation{``0},Microsoft.FSharp.Core.FSharpFunc{Deedle.DataSegment{Deedle.Series{``0,``1}},``2},Microsoft.FSharp.Core.FSharpFunc{Deedle.DataSegment{Deedle.Series{``0,``1}},Deedle.OptionalValue{``3}},Deedle.Series{``0,``1})"]

See Also