interpTs: Interpolate or substitute missing time series values (code of...

View source: R/interpTs.R

interpTsR Documentation

Interpolate or substitute missing time series values (code of the former wq package)

Description

Imterpolates or substitutes missing data in a time series for gaps up to a specified size.

Usage

interpTs(x, type = c("linear", "series.median", "series.mean", "cycle.median",
"cycle.mean"), gap = NULL)

Arguments

x

object of class "ts" or "mts"

type

method of interpolation or substitution

gap

maximum gap to be replaced

Value

The time series with some or all missing values replaced.

Author(s)

Alan D. Jassby and James E. Cloern


TTAinterfaceTrendAnalysis documentation built on March 31, 2023, 6:12 p.m.