powered by
Obtain the accumulation of monthly hydro-climatic variables
ACCU(X, ts = 6)
The vector of monthly hydro-climatic variables of n years. ts is the accumulated time scale.
The accumulated time scale
X=runif(120, min = 0, max = 100) # 10-year monthly data Y<-ACCU(X,ts=3) # Compute the 3 month accumulated series
Run the code above in your browser using DataLab