powered by
Calculate the difference of a time series, with a specific lag period. The difference is used to show the change in value over set period.
fdiff(x,n)
: a numeric vector
: number of lag periods
# NOT RUN { fdiff(mtcars[,2],1) # }
Run the code above in your browser using DataLab