eeg_summarise: Calculate simple summary statistics for eeg_* objects

View source: R/summarise_eeg.R

eeg_summariseR Documentation

Calculate simple summary statistics for ⁠eeg_*⁠ objects

Description

Calculate the timepoint-by-timepoint mean, standard deviation, standard error, or variance eeg_epochs objects.

Usage

eeg_summarise(data, ...)

## S3 method for class 'eeg_epochs'
eeg_summarise(
  data,
  statistic = c("sem", "mean", "sd", "var"),
  conditions = NULL,
  time_lim = NULL,
  ...
)

Arguments

data

An eegUtils object.

...

Various arguments passed to specific functions

statistic

The statistic to calculate at each timepoint. Defaults to "sem"

conditions

Conditions to group the data by.

time_lim

Timepoint(s) to summarise. Can be a range, for which a summary statistic will be provided for each timepoint, or a list of individual times. If none is supplied, the function will calculate a summary for every timepoint.

Value

A tibble

Methods (by class)

  • eeg_summarise(eeg_epochs): Calculate summary statistics for eeg_epochs objects

Examples

eeg_summarise(demo_spatial, statistic = "sem")


craddm/eegUtils documentation built on March 1, 2025, 3:23 p.m.