diffn | R Documentation |
Produce a vector or matrix of differences, keeping initial length
diffn(x, lag = 1, differences = 1, na = NA)
x |
An initial vector. |
lag |
Size of lag. |
na |
A value to fill missing observations, |
difference |
Order of differentiating. |
Vector or matrix of differences.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.