This function calculates the total duration (in seconds) of events of collective motion in a dataset.
events_dur(data, step2time)
A numeric corresponding to the total duration of events in the dataset in seconds.
A dataframe with a keep
column, representing which rows
are defined as events of collective motion (added by the
define_events
function).
The sampling frequency of the dataframe (how many seconds are between each row of the data).
Marina Papadopoulou m.papadopoulou.rug@gmail.com
define_events
, events_n