Dear ferret users,
I have a 1 dimensional time series with intermittent values equal to 1 and missing values in between (1's represent spells of certain events). I want to calculate number of spells of of 1's and other stats such as mean and
medium duration of spells of 1's.
I would appreciate any lead on this.
Thanks,
Jagadish