hi,
i have a one column of about 500,000 numbers - either 0 or 1.
i need to know: each time the column reads 1, how many rows until it reads a 0; and then how long until the next 1.
ideally this will leave me with a shorter dataset something like:
1 5
0 2
1 3
0 1
1 8
0 2
1 7
0 11
obviously the first column would be easy to generate if i can generate the second...
thanks for any answers!
Bookmarks