Description Usage Arguments Value Examples
View source: R/valuefunctions.R
Extrapolates NA's in the beginning or the end of a univariate vector. Intermediate NA's that occur between two observed values are not touched. Please use interpolation for that case.
1 | extrapolateNA(x, len = 3)
|
x |
the univariate vector to extrapolate |
len |
the number of non NA elements to base the extrapolation on which defaults to 3 |
a vector with the NA's in the beginning and the end extrapolated
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.