Takes the k-th order differences
Diff(x, lag = 1, k = 1, axis = 2)
Takes in a vector of length n and returns a vector of length n-k of the kth order differences
An Expression that represents a vector
The degree of lag between differences
The integer value of the order of differences
The axis along which to apply the function. For a 2D matrix, 1
indicates rows and 2
indicates columns.