Description Usage Arguments Value See Also Examples

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)
``` |

splusTimeDate documentation built on May 29, 2017, 9:38 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.