shiftPositions | R Documentation |
Returns a positions
object similar to the input but shifted in time.
shiftPositions(x, k=1)
x |
a vector or |
k |
the number of positions the input series is to shift for the new series.
If |
returns a vector or timeDate
object with
the positions shifted by k
steps.
lag
shiftPositions(1:10, 1) x <- as(1:10, "timeDate") shiftPositions(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.