f.spei: Standard Precipitation Evaporation Index calculation

Description Usage Arguments Value

View source: R/fspei.R

Description

Internal funciton to calculate the SPEI

Usage

1
f.spei(vtime, vdeficit, n)

Arguments

vtime

a data.frame column or vector with daily time stamps (Date type)

vdeficit

a data.frame column or vector with daily hydrological deficit obtained by the difference of precipitation and potential evapotranspitation (P - ET0)

n

a natural number that indicates the accumulation time (pentad, week, month, etc)

Value

The function return a list with two elements. One data frame with time stamped pentad values and a matrix with years organized in columns.


pedroalencar1/fdClassify2 documentation built on Dec. 22, 2021, 7:38 a.m.