If I have a table with a column per day for a whole month with series of 1 and 0, is there a possibility to count how many groupings I have of 1?
With this I mean, if I have 1 1 1 1 0 0 1 1 0 1 0 1 1 1 0 0 0 0 0 0 0 1 1 1 1 0 1 1 0 0 1
, is there a way to say in that month I had 4+2+1+3+4+2+1
series of following 1s
And if so, is there a way to complicate it a bit more and count by grouping both 1s and 0s as in 4 ones followed by 2 zeros followed by 2 ones etc.?
Do I make sense?