title: Find & sum range of values > 0 which aren't interrupted by specific quantity of zeros
body: <p>I have a CSV file which stores precipitation data in mm per day for over 80 years like this:</p>
  
  <pre><code>19980720;0
  19980721;5.1
  19980722;2
  19980723;21.1
  19980724;3.4
  19980725;0
  19980726;0
  19980727;1.2
  19980728;0.2
  19980729;0
  19980730;0
  19980731;0
  19980801;2
  19980802;5.6
  19980803;10
  19980804;15
  19980805;14.6
  19980806;13
  19980807;0
  19980808;0
  </code></pre>
  
  <p>I already loaded the data in R. Now I want to find periods with continuous rain. To do so I thought about summing up the rainfall of days which are interrupted by at least two days without any rainfall.</p>
  
  <p><strong>How can I find those periods?</strong></p>
  
  <p>EDIT: For the example data the output could be something like this:</p>
  
  <pre><code>60.2
  31.6
  1.4
  </code></pre>
  
  <p>which are the summarized and sorted values of the three periods with continuous rain in my example. Maybe it is possible to add the start and/or end date when the specific event happend:</p>
  
  <pre><code>19980801 19980806 60.2
  19980721 19980724 31.6
  19980727 19980728 1.4
  </code></pre>