Skip to contents

Get number of channels

Usage

nChannels(x)

Arguments

x

A PhysioExperiment object.

Value

Integer number of channels.

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

channelNames for channel labels, channelInfo for full channel metadata, pickChannels for subsetting channels

Examples

pe <- PhysioExperiment(
  assays = list(raw = matrix(rnorm(400), nrow = 100, ncol = 4)),
  samplingRate = 100
)
nChannels(pe)  # 4
#> [1] 4