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

Description Usage Arguments Details Value Note Author(s) See Also

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

1
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.

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.

Value

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

Note

This function is verbose, some information of its running tasks is presented.

Author(s)

A.M. Sajo-Castelli, Desiree Villalta.

See Also

complete.series


vetools documentation built on May 2, 2019, 10:15 a.m.