# Identity filter (returns original series)
# Load package and example series
library(daltoolbox)
data(tsd)
tsd$y[9] <- 2 * tsd$y[9] # inject an outlier for comparison
# Fit identity filter and transform (no change expected)
filter <- ts_fil_none()
filter <- fit(filter, tsd$y)
y <- transform(filter, tsd$y)
# Plot original vs (identical) filtered series
plot_ts_pred(y = tsd$y, yadj = y)
Run the code above in your browser using DataLab