Learn R Programming

transx (version 0.0.1)

filter_bw: Butterworth Filter

Description

This function computes the cyclical component of the Butterworth filter.

Usage

filter_bw(x, ...)

Arguments

x

[univariate vector]

Univariate vector, numeric or ts object with only one dimension.

...

Further arguments passed to bwfilter.

Examples

Run this code
# NOT RUN {
unemp <- ggplot2::economics$unemploy
unemp_cycle <- filter_bw(unemp, freq = 10)
plotx(cbind(unemp, unemp_cycle))
# }

Run the code above in your browser using DataLab