This function returns a vector with the timeseries of event IDs according to the input keep column of the dataframe.
Arguments
- df
A dataframe with a set and a keep column to get the timeseries of event IDs. The
keep
column is added by thedefine_events
function and represents whether each timestep is part of an event or not (whether it should be kept in for the rest of the analysis). Each set of the dataframe should be ordered in time.
Value
a vector of the same length as the rows of the input dataframe with the timeseries of event IDs.
Author
Marina Papadopoulou m.papadopoulou.rug@gmail.com