Description Usage Arguments See Also
Fills gaps of an xts-object and results a modified xts-object.
1 2 |
xts |
An |
mode |
The mode to fill the gaps with: "0" for a specific value, e.g. NA or 0, "1" for locf, "2" for nocb, "3" for linear interpolation, "4" for spline approximation. |
fill_with |
The value to fill the gap (requires mode = 0) |
fill_index |
logical. Should the index be filled so that the timeseries becomes equidistant? Corresponding values for filled indices become NA. |
by |
The interval the index should be aligned to |
na_rm |
logical. Should leading NAs be removed (affects mode=1 and mode=2)? |
maxgap |
maximum number of consecutive NAs to fill. Any longer gaps will be left unchanged. |
verbose |
logical. Should informative outputs printed during function evaluation? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.