I would like be able to select a subset of values that may includes few zeros from a set including many zeros. For example:
Input:
item
0
0
0
0
0
0
0
1
2
3
0
0
0
6
8
8
9
0
0
0
0
0
0
0
0
I would like to select the subset below that satisfy the following condition: between two no-zero values there is a total number of zeros that is less than 10 (e.g. 3-6).
Please, any help on this would be very appreciated.
Thanks in advance. Best Regards, Carlo
Output:
item
1
2
3
0
0
0
6
8
8
9