title: Calculating precipitation intensity in R
body: <p>I have hourly precipitation data for multiple days. Is there anyway for R to identify when precipitation is greater than zero, add it together and divide by how long it was raining to get the intensity, or average rainfall, of the storm? I am new to R and I know how to get the mean precipitation for each day, but I'd rather have the mean rainfall for each rain event. Thanks</p>