resample_signal: Resample (up or down) a signal

View source: R/filter.R

resample_signalR Documentation

Resample (up or down) a signal

Description

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


rticulate documentation built on April 3, 2025, 7:26 p.m.