Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

stats-filter

Linear Filtering on a Time Series


Description

Applies linear filtering to a univariate 'timeSeries'.

Value

A 'timeSeries' object without missing values.

Examples

## Creata a Dummy Signal 'timeSeries' - 
   data <- matrix(rnorm(100), ncol = 2)
   s <- timeSeries(data, units=c("A", "B"))
   head(s)
   
## Filter the series - 
   f <- filter(s, rep(1, 3))
   head(f)
   
## Plot and Compare the first series - 
   plot(cbind(s[, 1], f[, 1]), plot.type="s")

timeSeries

Financial Time Series Objects (Rmetrics)

v3062.100
GPL (>= 2)
Authors
Diethelm Wuertz [aut] (original code), Tobias Setz [cre], Yohan Chalabi [ctb], Martin Maechler [ctb] (<https://orcid.org/0000-0002-8685-9910>)
Initial release
2020-01-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.