Description Usage Arguments Details Value
This value fills in missing values (NA
s) in a numeric vector by
linear interpolation
1 | linterp(x, max_allow = 3)
|
x |
The numeric vector to interpolate. The first and last element must
not be |
max_allow |
Maximum number of consecutive missing values to allow. If
there is any number of consecutive |
This function can be handy when running fitFluMoDL
, for
example to fill in small gaps in the temperatures vector.
But it can be more generally useful as well.
The numeric vector x
, with any missing values replaced by
linear interpolants.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.