This function accepts a data frame that contains a column named "discharge" and calculates RA5; Number of day rises. Compute the number of days in which the flow is greater than the previous day. RA5 is the number of positive gain days divided by the total number of days in the flow record (dimensionless-spatial).
data frame containing a "discharge" column containing daily flow values
ra5 numeric containing RA5 for the given data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.