Hi,
I need help to count the Frequency (sequence) of 0 and 1 in a row. My data looks like this (e.g):
1, 0, 0, 1, 0, 0, 0, 1, 1, 1.
and I want the output to be:
1, 2, 1, 3, 3.
another example:
1, 1, 1, 0, 0, 0,
and I here want the output to be:
3, 3,
Many thanks! and hope I made myself clear
Note: If it´s possible to show which frequency/sequence number that belongs to 0 or 1 is a bonus, but not necessary.
Bookmarks