SmoothInterp: SmoothInterp

Description Usage Arguments Details Value Author(s) Examples

Description

Smooths a time series and interpolates for missing values

Usage

1
SmoothInterp(.timeSeries, .maxGap = 1000, .Length = 61, .order = 3)

Arguments

.timeSeries

A numeric vector containing a series to be smoothed.

.maxGap

The largest gap across which to interpolate

.Length

The length of the segment for Savitzky-Golay filtering. (Must be odd; will be set odd if supplied as even.) Default: 61 If .Length <= 1 there will be no smoothing, only interpolation.

.order

The order of the polynomials to be used for filtering.

Details

Uses Savitzgy-Golay polynomials to smooth the series, after interpolating to fill missing values and then, if they still exist, setting remaining missing values to zero.

Value

The smoothed and filtered series as a vector.

Author(s)

William Cooper

Examples

1
DPsmoothed <- SmoothInterp (RAFdata$DPXC)

WilliamCooper/Ranadu documentation built on July 10, 2019, 12:40 a.m.