powered by
positions
shiftPositions(x, k=1)
timeDate
NA
k
If k is a non-integer value, it is rounded to the nearest integer before the shift is applied.
lag
shiftPositions(1:10, 1) x <- as(1:10, "timeDate") shiftPositions(x)
Run the code above in your browser using DataLab