extend dplyr to multiple lags
| 1 | 
| x | a vector of values | 
| lags | vector of lags to be computed | 
| default | value used for non-existant rows. Defaults to  | 
| order_by | override the default ordering to use another vector | 
| ... | Needed for compatibility with lag generic. | 
| reduce | function to reduce results | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.