Description Usage Arguments Value Examples
View source: R/utility_tools.R
collection of imputation procedures
1 | nafill(v, rule, maxgap = 4, verbose = F)
|
v |
vector with missing elements. |
rule |
rule for filling the missing cells. "zero" just fills them with 0; "linear" interpolate using zoo::na.approx. In this case, the tails are not filled. If "arima", then it interpolates using linear and extrapolates using arima (calling AlertTools::temp.predict) |
maxgap |
maximum number of consecutive NAs to fill. Longer gaps will be left unchanged. Only works for rule = "zero" or "linear" |
vector
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.