filter_signal: Filter signal, defaluts to 2nd order Butterworth low pass...

View source: R/signal_processing.R

filter_signalR Documentation

Filter signal, defaluts to 2nd order Butterworth low pass filter

Description

Filter signal, defaluts to 2nd order Butterworth low pass filter

Usage

filter_signal(
  signal,
  cutoff_frequency,
  signal_col = 2,
  sample_rate = NULL,
  type = "low",
  trim_ends = 0,
  postfix = "_filt",
  filter_func = signal::butter,
  filter_order = 2,
  ...
)

Arguments

signal

Vector or signal dataframe with time column

cutoff_frequency

Critical frequency of filter

signal_col

column with signal to filter

sample_rate

Sample rate of signal. If NULL, this is calculated from the time column.

type

passed to signal::butter(). One of "low", "high", "stop", "pass"

trim_ends

Seconds to trim off each end after filtering. To remove tails towards 0

postfix

Postfix to the new column

filter_func

Signal function to use for filtering e.g. signal::cheby2

filter_order

Passed to filter_func as n

...

Passed to filter_func


JohannesNE/waveformtools documentation built on July 1, 2022, 8:48 p.m.