3 Replies Latest reply: Aug 10, 2012 2:57 AM by Sebastian Blum RSS

    how to count the number of changes

    perry van der meijden

      Hi,

       

      I have a dataset like:

       

      value

      0

      1

      0

      0

      0

      1

      1

      0

      1

      0

      0

      1

      1

      1

      0

      0

      etc.

       

      Now I would like to count the number of changes from 0 to 1. (in the example above, the result would be 4) Does anyone have a clue?

       

      thanks in advance.

      Per