move#

swordfish.function.move()#

move is the general form of prev and next.

Parameters:
  • X (Constant) – A vector/matrix/table.

  • steps (Constant) –

    An integer indicating how many positions to shift the elements of X.

    • If steps is positive, X is moved to the right for steps positions;

    • If steps is negative, X is moved to the left for steps positions;

    • If steps is 0, X does not move;

    • If steps is a DURATION, X must be an indexed matrix or indexed series with temporal values as its row index.