powered by
positions
shiftPositions(x, k=1)
timeDate
NA
k
lag
shiftPositions(1:10, 1) x <- as(1:10, "timeDate") shiftPositions(x)
Run the code above in your browser using DataLab