Description Usage Arguments Value
The flumes that measure flow sometimes get stuck. This is clear when there
has been no rainfall recently, but the flume is still recording flow. When
this occurs, we set the flow to zero. This function sorts the
data.frame
by date_time and then calculates the max rain in the
previous window
rows of the data.frame (ignoring NAs).
If this max is zero, then flow is set to zero.
1 |
data |
A |
window |
An integer indicating the number of minutes to calculate the max rain over. Default is 24*60, the number of minutes in a day. |
A data.frame
arranged by date_time
with the flow column
updated so that flow is 0 when no rain has fallen.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.