Click or drag to resize
FrameModuleDiffR, C Method
Returns a frame with columns containing difference between an original value and a value at the specified offset. For example, calling `Frame.diff 1 s` returns a frame where previous column values is subtracted from the current ones. In pseudo-code, the function behaves as follows: result[k] = series[k] - series[k - offset] Columns that cannot be converted to `float` are left without a change. ## Parameters - `offset` - When positive, subtracts the past values from the current values; when negative, subtracts the future values from the current values. - `frame` - The input frame containing at least some `float` columns. [category:Frame transformations]

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public static Frame<R, C> Diff<R, C>(
	int offset,
	Frame<R, C> frame
)

Parameters

offset
Type: SystemInt32

[Missing <param name="offset"/> documentation for "M:Deedle.FrameModule.Diff``2(System.Int32,Deedle.Frame{``0,``1})"]

frame
Type: DeedleFrameR, C

[Missing <param name="frame"/> documentation for "M:Deedle.FrameModule.Diff``2(System.Int32,Deedle.Frame{``0,``1})"]

Type Parameters

R
C

Return Value

Type: FrameR, C

[Missing <returns> documentation for "M:Deedle.FrameModule.Diff``2(System.Int32,Deedle.Frame{``0,``1})"]

See Also