Get number of events
References
Delorme A, Makeig S (2004). "EEGLAB: an open source toolbox for analysis of single-trial EEG dynamics." Journal of Neuroscience Methods, 134(1), 9-21.
See also
getEvents for retrieving events,
PhysioEvents for the event constructor,
addEvents for appending events
Examples
events <- PhysioEvents(onset = c(1, 2, 3), type = "stimulus")
nEvents(events)
#> [1] 3