f.spei | R Documentation |
Internal funciton to calculate the SPEI
f.spei(vtime, vdeficit, n)
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) |
The function return a list with two elements. One data frame with time stamped pentad values and a matrix with years organized in columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.