Skip to contents

Computes the average across epochs, optionally by condition.

Usage

averageEpochs(x, by = NULL)

Arguments

x

An epoched PhysioExperiment object.

by

Optional column name in epoch_info to group by.

Value

A PhysioExperiment object with an "averaged" assay containing the mean signal across epochs. If by is specified, the third dimension corresponds to conditions.

References

Luck, S.J. (2014). "An Introduction to the Event-Related Potential Technique." 2nd ed. MIT Press.

See also

epochData() to create epoched data, grandAverage() for averaging across subjects, plotERP() for ERP visualization.