stats-filter: Linear Filtering on a Time Series

Description Value Examples

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")

timeSeries documentation built on May 21, 2017, 12:28 a.m.

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