Resample (up or down) a signal
Usage
resample_signal(
signal,
time,
by = 2,
to = NULL,
from = NULL,
method = "interpolation"
)
Arguments
- signal
The signal to resample.
- time
The time vector of the signal to resample.
- by
The factor by which to resample the signal (default is 2
).
- to
The frequency to resample to.
- from
The original sampling frequency.
- method
Resampling method (default is interpolate
which uses approx
).
Value
A list with the resampled signal and time if methdo = "interpolate"
.