Returns a `positions`

object similar to the input but shifted in time.

1 | ```
shiftPositions(x, k=1)
``` |

`x` |
a vector or |

`k` |
the number of positions the input series is to shift for the new series. If `k` is a positive value, the resulting series is shifted forwards in time.If `k` is a negative value, the resulting series is shifted backwards in time.
If |

returns a vector or `timeDate`

object with
the positions shifted by `k`

steps.

1 2 3 | ```
shiftPositions(1:10, 1)
x <- as(1:10, "timeDate")
shiftPositions(x)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.