Description Usage Arguments Examples
Computes weighted means with a triangular weighting function
1 | fill_missing(x, win = 5)
|
x |
A numeric vector |
win |
Time window , e.g., if win = 3 then weighting = c(1, 2, 3, 0, 3, 2, 1) |
1 2 3 | x <- 1:100
x[seq(20, 80, 10)] <- NA
fill_missing(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.