stats-filter: Linear Filtering on a Time Series

Description

Applies linear filtering to a univariate 'timeSeries'.

Value

A 'timeSeries' object without missing values.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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")

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.