Skip to contents

Assigns physical units to channels.

Usage

setChannelUnits(x, units)

Arguments

x

A PhysioExperiment object.

units

Character vector or named list of units.

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

setChannelTypes for assigning channel types, channelInfo for full channel metadata

Examples

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

# Set all channels to same unit
pe <- setChannelUnits(pe, "uV")