vetools (version 1.3-28)

fill.small.missing: Complete daily-frequency time-series

Description

This routine completes a series of frequency 365.25. Each NA is estimated using the function fun (median) of the same day of all other years (where available).

Usage

fill.small.missing(serie, max.len = 3 * 30, func = median)

Arguments

serie
A ts object.
max.len
Largest gap (in days) to complete using this method. Defaults to 3 months.
func
Function to use in order to estimate an NA. Defaults to median.

Value

Returns a ts object with gaps of NA greater than max.len days (if present).

Details

This function completes small gaps of NA, it is not intended to complete long periods of NAs. If required to complete large sets of NAs, see complete.series.

See Also

complete.series