Description Usage Arguments Value See Also Examples
Offset x backwards by n
| 1 | 
| x | Vector | 
| n | Amount of offset by | 
| default | Value to pad missing data with | 
Offset values
Other utility functions: between,
cumall, cumany,
cummean, distribute,
first, last,
lead, n_distinct,
n_groups, nth,
n
| 1 2 | lag (1:10)
lag (1:10, 2)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.