swsi: requires lubridate, dplyr read more in...

Description Usage Arguments

View source: R/swsi.R

Description

requires lubridate, dplyr read more in http://climate.colostate.edu/pdfs/climo_rpt_91-3.pdf

Usage

1
swsi(df.hist, df.i, coeff)

Arguments

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).


jmigueldelgado/hdi documentation built on May 5, 2019, 8:01 p.m.