Lead values
Shifts a vector backward by n positions, filling with NA.
x (Vector): The input vector.
Vector
n (Int): (Optional) Number of positions to shift. Default is 1.
Int
The shifted vector.
lead([1, 2, 3]) -- Returns = [2, 3, NA]
lag