Description Usage Arguments Value
Fill gaps with linearization (mean of the adjacent values) or
repetition of previous/next value, by using the na.approx
function.
1 |
x |
numeric vector |
method |
how to fill in the gaps (default by linearization, otherwise by previous/next value duplication) |
maxgap |
maximum number of consecutive NAs to fill. Any longer gaps will be left unchanged. |
numeric vector with filled 1-value gaps
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.