f.spei: Standard Precipitation Evaporation Index calculation

View source: R/fspei.R

f.speiR Documentation

Standard Precipitation Evaporation Index calculation

Description

Internal funciton to calculate the SPEI

Usage

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/fdClassify documentation built on Sept. 15, 2023, 3:46 a.m.