Wraps and extends zoo
package's NA imputation functions.
1 |
x |
Vector to input data. |
how |
Inputation type. One of 'mean', 'median', 'locf' (Last Observation Carried Forward), 'nocb' (Next Observation Carried Backward), 'lin_interp' (linear interpolation) or 'cub_spline' (cubic spline) |
window |
Window size. Used when |
... |
Further arguments to zoo functions na.locf, na.approx or na.spline. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.