Description Usage Arguments Value Examples
Interpolate missing values with fixed ranges around discrete samples
1 | interp_range(x, y, max_interval, fill = 0)
|
x |
a vector of timesteps (numeric or date-like) |
y |
a vector of discrete values with NAs indicating missing values |
max_interval |
the maximum number of timesteps for using linear interpolation |
fill |
value to fill beginning and ending values outside max_interval |
vector of interpolated values corresponding to x
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.