title: Extract consecutive sequences from vector
body: <p>I have a vector called v with positive and negative values as well as zeros. The question is, how to extract (in a list) all the continuous sequences of positive numbers, that is the sequences of positive numbers separated by zeros.</p>
  
  <p>Here is v:</p>
  
  <pre><code>v &lt;- c(-75.09619, -38.31229,   0,  57.17792,  65.55923, 108.52735, 104.29929,  32.47125,0,   0,   0,   0, -26.65008, -49.48638, -79.60670,-90.55343, -34.60761,   0, 21.48842, 38.83820, 42.28727, 0)
  </code></pre>
  
  <p>The output must be something like:</p>
  
  <pre><code>[1] 57.17792,  65.55923, 108.52735, 104.29929,  32.47125
  [2] 21.48842 , 38.83820, 42.28727
  </code></pre>
  
  <p>Any ideas?</p>