Skip to contents

Updates channel metadata. Channel information is stored in colData (columns = channels).

Usage

channelInfo(x) <- value

Arguments

x

A PhysioExperiment object.

value

A DataFrame with channel information.

Value

Modified PhysioExperiment object.

References

Oostenveld R, Fries P, Maris E, Schoffelen JM (2011). "FieldTrip: Open source software for advanced analysis of MEG, EEG, and invasive electrophysiological data." Computational Intelligence and Neuroscience, 2011, 156869.

See also

channelInfo for reading channel metadata, channelNames for channel labels, setChannelTypes for assigning channel types

Examples

pe <- PhysioExperiment(
  assays = list(raw = matrix(rnorm(400), nrow = 100, ncol = 4)),
  samplingRate = 100
)

# Set channel info
channelInfo(pe) <- S4Vectors::DataFrame(
  label = c("Fz", "Cz", "Pz", "Oz"),
  type = rep("EEG", 4)
)