select_freqs: Select frequencies

View source: R/data_selection.R

select_freqsR Documentation

Select frequencies

Description

Select specific frequencies from eeg_tfr objects. Can be used to selecting either single frequencies or anything within a range.

Usage

select_freqs(data, freq_range)

## S3 method for class 'eeg_tfr'
select_freqs(data, freq_range)

Arguments

data

An eeg_tfr object.

freq_range

The range of frequencies to retain. Can be a scale or the lower and upper bounds. (e.g. c(5, 30))

Methods (by class)

  • eeg_tfr: Function for selecting specific frequencies from eeg_tfr objects.

Examples

demo_tfr <- compute_tfr(demo_epochs, foi = c(4, 30), n_freq = 10, n_cycles = 5)
select_freqs(demo_tfr, c(8, 12))

neuroconductor/eegUtils documentation built on Feb. 3, 2023, 5:33 p.m.