Click or drag to resize
SeriesModuleresampleEquivIntoK1, K2, V1, V2 Method
Resample the series based on equivalence class on the keys. A specified function `keyProj` is used to project keys to another space and the observations for which the projected keys are equivalent are grouped into chunks. The chunks are then transformed to values using the provided function `f`. ## Parameters - `series` - An input series to be resampled - `keyProj` - A function that transforms keys from original space to a new space (which is then used for grouping based on equivalence) - `f` - A function that is used to collapse a generated chunk into a single value. ## Remarks This function is similar to `Series.chunkBy`, with the exception that it transforms keys to a new space. This operation is only supported on ordered series. The method throws `InvalidOperationException` when the series is not ordered. For unordered series, similar functionality can be implemented using `Series.groupBy`. [category:Sampling, resampling and advanced lookup]

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public static Series<K2, V2> resampleEquivInto<K1, K2, V1, V2>(
	FSharpFunc<K1, K2> keyProj,
	FSharpFunc<Series<K1, V1>, V2> f,
	Series<K1, V1> series
)

Parameters

keyProj
Type: Microsoft.FSharp.CoreFSharpFuncK1, K2

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

f
Type: Microsoft.FSharp.CoreFSharpFuncSeriesK1, V1, V2

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

series
Type: DeedleSeriesK1, V1

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

Type Parameters

K1
K2
V1
V2

Return Value

Type: SeriesK2, V2

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

See Also