changefs: Change Sampling Rate

View source: R/changefs.R

changefsR Documentation

Change Sampling Rate

Description

Change sampling rate of a ctd object.

Usage

changefs(ctd_obj, new_fs)

Arguments

ctd_obj

object of class 'ctd' containing continuous time domain data.

new_fs

positive scalar indicating the new sampling frequency.

Details

Changing the sampling rate is done using the resample function in the gsignal package.

Value

A ctd object containing the resampled data.

Author(s)

Geert van Boxtel, G.J.M.vanBoxtel@gmail.com

See Also

resample

Examples

data(EEGdata)
down <- changefs(EEGdata, 100)
up <- changefs(EEGdata, 512)


gjmvanboxtel/eegr documentation built on May 20, 2023, 4:26 a.m.