Click or drag to resize
FrameModuleShiftR, C Method
Returns a frame with columns shifted by the specified offset. When the offset is positive, the values are shifted forward and first `offset` keys are dropped. When the offset is negative, the values are shifted backwards and the last `offset` keys are dropped. Expressed in pseudo-code: result[k] = series[k - offset] ## Parameters - `offset` - Can be both positive and negative number. - `frame` - The input frame whose columns are to be shifted. ## Remarks If you want to calculate the difference, e.g. `df - (Frame.shift 1 df)`, you can use `Frame.diff` which will be a little bit faster. [category:Frame transformations]

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

Parameters

offset
Type: SystemInt32

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

frame
Type: DeedleFrameR, C

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

Type Parameters

R
C

Return Value

Type: FrameR, C

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

See Also