Description Usage Arguments Value Examples
This function takes a vector of data (with posisbly missing values) and returns a vector of the same length. If the corresponding value of x is not missing or is an interpolation, the returned value is 0. If the corresponding value of x is missing and is an extrapolation, then the returned value is the "distance" (in terms of number of observations) to the closest non-missing value. See examples.
1 |
x |
The vector of data. |
A vector of the same length as x.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.