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