| moving_difference | R Documentation | 
Calculate velocity. calculate the difference of values in each ordered value of an array
moving_difference(x)
x | 
 The array to transform  | 
an array of same length (first value is NA)
moving_difference(c(1,4,-2, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.