Description Usage Arguments Value Examples
me.lag lag a vector if t>0 or lead a vector if t<0.
1 |
x |
a vector |
t |
number of times to lag (default=1) |
nafill |
set value to fill NA's before first t value |
extrapolate |
if TRUE extrapolate excedent values, only if t>0 (default=FALSE) |
Return a vector.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.