View source: R/ecd-lag-method.R
ecd.lag | R Documentation |
This utility is basically the same as Hmisc::Lag
,
but it handles mpfr vector properly.
ecd.lag(x, shift = 1, na.omit = FALSE)
x |
a vector of numeric or mpfr |
shift |
integer, cells to shift |
na.omit |
logical, whether to remove the NAs |
the shifted vector
x <- ecd.lag(c(1,2,3)) y <- ecd.lag(ecd.mpfr(c(1,2,3)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.