shiftPositions {splusTimeDate} | R Documentation |
Shift a Positions Object
Description
Returns a positions
object similar to the input but shifted in time.
Usage
shiftPositions(x, k=1)
Arguments
x |
a vector or |
k |
the number of positions the input series is to shift for the new series.
If |
Value
returns a vector or timeDate
object with
the positions shifted by k
steps.
See Also
Examples
shiftPositions(1:10, 1)
x <- as(1:10, "timeDate")
shiftPositions(x)
[Package splusTimeDate version 2.5.8 Index]