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

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

View source: R/fill.small.missing.R

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 30, 2017, 1:27 a.m.

Search within the vetools package
Search all R packages, documentation and source code