requires lubridate, dplyr read more in http://climate.colostate.edu/pdfs/climo_rpt_91-3.pdf
1 | swsi(df.hist, df.i, coeff)
|
df.hist |
dataframe of historical monthly reservoir volume, streamflow and precipitation of columns rs, sf, pr respectively. First column must be of class POSIXct |
df.i |
dataframe with same structure of df.hist with values for the month for which we are calculating the index. Can have more than one row, ie more than one month |
coeff |
is a dataframe of time (posix) and coefficients a, b and c for each month January to December (coefficients may vary along the seasons). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.